Browse Source

wxGUI: fix after the new rendering implementation - force rerendering map when activated (zoom and position could change)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@65240 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 năm trước cách đây
mục cha
commit
e0d946fcc9
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      gui/wxpython/core/render.py

+ 2 - 0
gui/wxpython/core/render.py

@@ -1247,6 +1247,8 @@ class Map(object):
         :param active: to be rendered (True)
         """
         layer.active = active
+        if active:
+            layer.forceRender = True
 
         Debug.msg (3, "Map.ChangeLayerActive(): name='%s' -> active=%d" % \
                    (layer.name, layer.active))