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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 18 09:46:37 PDT 2018


Author: martinl
Date: 2018-03-18 09:46:37 -0700 (Sun, 18 Mar 2018)
New Revision: 72379

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: set up default map display properties when new display is open

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2018-03-18 14:45:01 UTC (rev 72378)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2018-03-18 16:46:37 UTC (rev 72379)
@@ -2094,6 +2094,16 @@
             except:
                 pass
 
+        # set default properties
+        mapdisplay.SetProperties(render=UserSettings.Get(
+            group='display', key='autoRendering', subkey='enabled'),
+                              mode=UserSettings.Get(
+            group='display', key='statusbarMode', subkey='selection'),
+                              alignExtent=UserSettings.Get(
+            group='display', key='alignExtent', subkey='enabled'),
+                              constrainRes=UserSettings.Get(
+            group='display', key='compResolution', subkey='enabled'))
+
         self.displayIndex += 1
 
         return self.GetMapDisplay()



More information about the grass-commit mailing list