Browse Source

wxGUI: set up default map display properties when new display is open

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72379 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 years ago
parent
commit
89dbf386c9
1 changed files with 10 additions and 0 deletions
  1. 10 0
      gui/wxpython/lmgr/frame.py

+ 10 - 0
gui/wxpython/lmgr/frame.py

@@ -2094,6 +2094,16 @@ class GMFrame(wx.Frame):
             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()