[GRASS-SVN] r50056 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 4 05:47:40 EST 2012


Author: martinl
Date: 2012-01-04 02:47:40 -0800 (Wed, 04 Jan 2012)
New Revision: 50056

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix posManager/Display settings


Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2012-01-04 08:38:16 UTC (rev 50055)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2012-01-04 10:47:40 UTC (rev 50056)
@@ -851,7 +851,7 @@
         #
         # load layer manager window properties
         #
-        if UserSettings.Get(group = 'workspace', key = 'posManager', subkey = 'enabled') is False:
+        if UserSettings.Get(group = 'general', key = 'workspace', subkey = ['posManager', 'enabled']) is False:
             if gxwXml.layerManager['pos']:
                 self.SetPosition(gxwXml.layerManager['pos'])
             if gxwXml.layerManager['size']:
@@ -884,7 +884,7 @@
                                          value = display['projection']['proj'])
             
             # set position and size of map display
-            if UserSettings.Get(group = 'workspace', key = 'posDisplay', subkey = 'enabled') is False:
+            if not UserSettings.Get(group = 'general', key = 'workspace', subkey = ['posDisplay', 'enabled']):
                 if display['pos']:
                     mapdisp.SetPosition(display['pos'])
                 if display['size']:



More information about the grass-commit mailing list