[GRASS-SVN] r39756 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 19 02:13:36 EST 2009
Author: cmbarton
Date: 2009-11-19 02:13:31 -0500 (Thu, 19 Nov 2009)
New Revision: 39756
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
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.
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2009-11-19 07:07:59 UTC (rev 39755)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2009-11-19 07:13:31 UTC (rev 39756)
@@ -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