From d565d6899e73445ce8e688d28cffda635268eb1a Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Fri, 6 May 2011 15:40:36 +0100 Subject: [PATCH] fixing undo not respecting previous order value --- .../src/main/javascript/commands/DragTopicCommand.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mindplot/src/main/javascript/commands/DragTopicCommand.js b/mindplot/src/main/javascript/commands/DragTopicCommand.js index e849ce56..e8aa487e 100644 --- a/mindplot/src/main/javascript/commands/DragTopicCommand.js +++ b/mindplot/src/main/javascript/commands/DragTopicCommand.js @@ -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.");