[GRASS-SVN] r47283 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 27 13:58:17 EDT 2011


Author: annakrat
Date: 2011-07-27 10:58:17 -0700 (Wed, 27 Jul 2011)
New Revision: 47283

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: try to fix #1412 (not opening north arrow dialog)

Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-07-27 15:52:30 UTC (rev 47282)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-07-27 17:58:17 UTC (rev 47283)
@@ -506,21 +506,17 @@
 
         # create overlay if doesn't exist
         self._CreateOverlay()
-
+        
         if len(self.parent.MapWindow.overlays[self.ovlId]['cmd']) > 1:
-            mapName, found = utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd'])
-            if self.parent.MapWindow.overlays[self.ovlId]['propwin'] is None and mapName:
-                # build properties dialog
-                menuform.GUI(parent = self.parent, show = False).ParseCommand(cmd=self.cmd,
-                                                                              completed=(self.GetOptData, self.name, ''))
-                
-            if found:
-                # enable 'OK' button
-                self.btnOK.Enable()
-                if name == 'legend':
+            if name == 'legend':
+                mapName, found = utils.GetLayerNameFromCmd(self.parent.MapWindow.overlays[self.ovlId]['cmd'])
+                if found:
+                    # enable 'OK' button
+                    self.btnOK.Enable()
                     # set title
                     self.SetTitle(_('Legend of raster map <%s>') % \
                                       mapName)
+            
         
     def _CreateOverlay(self):
         if not self.parent.Map.GetOverlay(self.ovlId):



More information about the grass-commit mailing list