[GRASS-SVN] r39755 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 19 02:08:00 EST 2009


Author: cmbarton
Date: 2009-11-19 02:07:59 -0500 (Thu, 19 Nov 2009)
New Revision: 39755

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
Log:
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.

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2009-11-19 05:55:43 UTC (rev 39754)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2009-11-19 07:07:59 UTC (rev 39755)
@@ -376,7 +376,7 @@
                     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 @@
         """
         start = time.clock()
         
+        print 'render: '+str(render)
+                
         self.resize = False
 
         # if len(self.Map.GetListOfLayers()) == 0:
@@ -911,7 +913,7 @@
         If not given from self.mouse['begin'] to self.mouse['end'].
 
         """
-        self.redrawAll = False
+#        self.redrawAll = False
         
         if not pdc:
             return



More information about the grass-commit mailing list