Browse Source

wx.iclass: event veto fix, rgb rasters as backgroud

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57822 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 11 years ago
parent
commit
cdd7f1615c
2 changed files with 3 additions and 4 deletions
  1. 0 1
      gui/wxpython/iclass/dialogs.py
  2. 3 3
      gui/wxpython/iclass/frame.py

+ 0 - 1
gui/wxpython/iclass/dialogs.py

@@ -157,7 +157,6 @@ class IClassGroupDialog(SimpleDialog):
             self.GroupSelected()
             wx.CallAfter(self.subGroupSelect.SetValue, s)
         dlg.Destroy()
-        event.Veto()
 
     def GroupSelected(self):
         group = self.GetSelectedGroup()

+ 3 - 3
gui/wxpython/iclass/frame.py

@@ -351,7 +351,7 @@ class IClassMapFrame(DoubleMapFrame):
         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 @@ class MapManager:
             
     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():