Fixed bug with upper text on saving.

This commit is contained in:
Unick Soft 2017-09-27 23:43:06 +03:00
parent ce7c879b77
commit 94384a3b52

View File

@ -482,10 +482,13 @@ Application.prototype.FindPath = function(graph1, graph2)
Application.prototype.SetHandlerMode = function(mode)
{
if (this.handler)
var manipolationHandlers = ["default", "addGraph", "addArc", "delete", "findPath", "connectedComponent", "eulerianLoop"];
if (this.handler && (g_AlgorithmIds.indexOf(mode) >= 0 || manipolationHandlers.indexOf(mode) >= 0))
{
this.handler.RestoreAll();
}
if (mode == "default")
{
this.handler = new DefaultHandler(this);