[GRASS-SVN] r68200 - grass/trunk/gui/wxpython/gmodeler
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 1 05:39:45 PDT 2016
Author: martinl
Date: 2016-04-01 05:39:45 -0700 (Fri, 01 Apr 2016)
New Revision: 68200
Modified:
grass/trunk/gui/wxpython/gmodeler/model.py
Log:
wxGUI/gmodeler: disable reordering (see #2951)
Modified: grass/trunk/gui/wxpython/gmodeler/model.py
===================================================================
--- grass/trunk/gui/wxpython/gmodeler/model.py 2016-04-01 12:29:20 UTC (rev 68199)
+++ grass/trunk/gui/wxpython/gmodeler/model.py 2016-04-01 12:39:45 UTC (rev 68200)
@@ -120,17 +120,17 @@
item = self.items.pop(oldIdx)
items.append(item)
self.items.insert(newIdx, item)
- try:
- nextItem = self.items[newIdx+1]
- except IndexError:
- continue # newIdx is the last item in the list
- items.append(nextItem)
- x = item.GetX()
- y = item.GetY()
- item.SetX(nextItem.GetX())
- item.SetY(nextItem.GetY())
- nextItem.SetX(x)
- nextItem.SetY(y)
+ # try:
+ # nextItem = self.items[newIdx+1]
+ # except IndexError:
+ # continue # newIdx is the last item in the list
+ # items.append(nextItem)
+ # x = item.GetX()
+ # y = item.GetY()
+ # item.SetX(nextItem.GetX())
+ # item.SetY(nextItem.GetY())
+ # nextItem.SetX(x)
+ # nextItem.SetY(y)
dc = wx.ClientDC(self.canvas)
for item in items:
More information about the grass-commit
mailing list