# HG changeset patch # User Laurent Bessard # Date 1362007205 -3600 # Node ID c1f901403a347aca2752a658b8208ff2d5265558 # Parent 7f9a9c47a317909062475a8ecdd7d58bc8e54d9d Fixed bug when drag'n dropping variables from left panel diff -r 7f9a9c47a317 -r c1f901403a34 controls/DebugVariablePanel.py --- a/controls/DebugVariablePanel.py Wed Feb 27 22:35:46 2013 +0100 +++ b/controls/DebugVariablePanel.py Thu Feb 28 00:20:05 2013 +0100 @@ -354,19 +354,19 @@ else: if y > height / 2: target_idx += 1 - if len(values) > 1 and values[2] == "move": + if len(values) > 2 and values[2] == "move": self.ParentWindow.MoveValue(values[0], target_idx) else: self.ParentWindow.InsertValue(values[0], target_idx, force=True) else: if y > height / 2: target_idx += 1 - if len(values) > 1 and values[2] == "move": + if len(values) > 2 and values[2] == "move": self.ParentWindow.MoveValue(values[0], target_idx) else: self.ParentWindow.InsertValue(values[0], target_idx, force=True) - elif len(values) > 1 and values[2] == "move": + elif len(values) > 2 and values[2] == "move": self.ParentWindow.MoveValue(values[0]) else: self.ParentWindow.InsertValue(values[0], force=True)