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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Nov 29 05:00:02 PST 2013


Author: martinl
Date: 2013-11-29 05:00:01 -0800 (Fri, 29 Nov 2013)
New Revision: 58330

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: avoid double rendering on auto-zoom to the first layer

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2013-11-29 12:35:30 UTC (rev 58329)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2013-11-29 13:00:01 UTC (rev 58330)
@@ -1659,9 +1659,8 @@
                     UserSettings.Get(group = 'display', key = 'autoZooming', subkey = 'enabled'):
                 mapLayer = self.GetLayerInfo(layer, key = 'maplayer')
                 if mapLayer.GetType() in ('raster', 'vector'):
-                    render = UserSettings.Get(group = 'display', key = 'autoRendering', subkey = 'enabled')
                     self.mapdisplay.MapWindow.ZoomToMap(layers = [mapLayer,],
-                                                        render = render)
+                                                        render = False)
             
             self.firstNewLayer = False # first layer has been already
                                        # added to the layer tree



More information about the grass-commit mailing list