[GRASS-SVN] r57822 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 23 08:57:23 PDT 2013


Author: turek
Date: 2013-09-23 08:57:22 -0700 (Mon, 23 Sep 2013)
New Revision: 57822

Modified:
   grass/trunk/gui/wxpython/iclass/dialogs.py
   grass/trunk/gui/wxpython/iclass/frame.py
Log:
wx.iclass: event veto fix, rgb rasters as backgroud

Modified: grass/trunk/gui/wxpython/iclass/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/dialogs.py	2013-09-23 15:21:43 UTC (rev 57821)
+++ grass/trunk/gui/wxpython/iclass/dialogs.py	2013-09-23 15:57:22 UTC (rev 57822)
@@ -157,7 +157,6 @@
             self.GroupSelected()
             wx.CallAfter(self.subGroupSelect.SetValue, s)
         dlg.Destroy()
-        event.Veto()
 
     def GroupSelected(self):
         group = self.GetSelectedGroup()

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2013-09-23 15:21:43 UTC (rev 57821)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2013-09-23 15:57:22 UTC (rev 57822)
@@ -351,7 +351,7 @@
         self._mgr.AddPane(self.plotPanel, wx.aui.AuiPaneInfo().
                   Name("plots").Caption(_("Plots")).
                   Dockable(False).Floatable(False).CloseButton(False).
-                  Left().Layer(1).BestSize((310, -1)))
+                  Left().Layer(1).BestSize((335, -1)))
         
     def _addPaneToolbar(self, name):
         if name == 'iClassPreviewMapManager':
@@ -1260,8 +1260,8 @@
             
     def SelectLayer(self, name):
         """!Moves selected layer to top"""
-        layers = self.map.GetListOfLayers(ltype = 'raster') + \
-                 self.map.GetListOfLayers(ltype = 'rgb')
+        layers = self.map.GetListOfLayers(ltype = 'rgb') + \
+                 self.map.GetListOfLayers(ltype = 'raster')
         idx = None
         for i, layer in enumerate(layers):
             if self.layerName[name] == layer.GetName():



More information about the grass-commit mailing list