fixing undo not respecting previous order value

This commit is contained in:
Pablo Luna 2011-05-06 15:40:36 +01:00
parent 1a06cf3658
commit d565d6899e

View File

@ -52,15 +52,15 @@ mindplot.commands.DragTopicCommand = mindplot.Command.extend(
}
// Set topic position ...
if (this._position != null)
// Set topic order ...
if (this._order != null)
{
topic.setOrder(this._order);
} else if (this._position != null)
{
// Set position ...
topic.setPosition(this._position);
} else if (this._order != null)
{
topic.setOrder(this._order);
} else
{
core.assert("Illegal commnad state exception.");