Преглед изворни кода

Backport from develbranch_6 r39755. self.redrawAll cannot be set to False in MouseDraw method because it prevents all screen refreshes after a MouseDraw action. If it needs to be set to False for digitizing, this should be done elsewhere.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39756 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton пре 15 година
родитељ
комит
5a5f8b535c
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      gui/wxpython/gui_modules/mapdisp_window.py

+ 4 - 2
gui/wxpython/gui_modules/mapdisp_window.py

@@ -376,7 +376,7 @@ class BufferedWindow(MapWindow, wx.Window):
                     y2=max(ylist)
                     pdc.SetIdBounds(drawid, wx.Rect(x1,y1,x2,y2))
                     # self.ovlcoords[drawid] = [x1,y1,x2,y2]
-
+                    
         elif pdctype == 'point': # draw point
             if self.pen:
                 pdc.SetPen(self.pen)
@@ -632,6 +632,8 @@ class BufferedWindow(MapWindow, wx.Window):
         """
         start = time.clock()
         
+        print 'render: '+str(render)
+                
         self.resize = False
 
         # if len(self.Map.GetListOfLayers()) == 0:
@@ -911,7 +913,7 @@ class BufferedWindow(MapWindow, wx.Window):
         If not given from self.mouse['begin'] to self.mouse['end'].
 
         """
-        self.redrawAll = False
+#        self.redrawAll = False
         
         if not pdc:
             return