mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fixing undo not respecting previous order value
This commit is contained in:
parent
1a06cf3658
commit
d565d6899e
@ -52,15 +52,15 @@ mindplot.commands.DragTopicCommand = mindplot.Command.extend(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set topic position ...
|
// Set topic order ...
|
||||||
if (this._position != null)
|
if (this._order != null)
|
||||||
|
{
|
||||||
|
topic.setOrder(this._order);
|
||||||
|
} else if (this._position != null)
|
||||||
{
|
{
|
||||||
// Set position ...
|
// Set position ...
|
||||||
topic.setPosition(this._position);
|
topic.setPosition(this._position);
|
||||||
|
|
||||||
} else if (this._order != null)
|
|
||||||
{
|
|
||||||
topic.setOrder(this._order);
|
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
core.assert("Illegal commnad state exception.");
|
core.assert("Illegal commnad state exception.");
|
||||||
|
Loading…
Reference in New Issue
Block a user