[GRASS-SVN] r61389 - grass/branches/releasebranch_7_0/gui/wxpython/mapwin

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 24 10:33:12 PDT 2014


Author: annakrat
Date: 2014-07-24 10:33:11 -0700 (Thu, 24 Jul 2014)
New Revision: 61389

Modified:
   grass/branches/releasebranch_7_0/gui/wxpython/mapwin/buffered.py
Log:
wxGUI/mapswipe: backport of missed part of r61383

Modified: grass/branches/releasebranch_7_0/gui/wxpython/mapwin/buffered.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/mapwin/buffered.py	2014-07-24 14:19:04 UTC (rev 61388)
+++ grass/branches/releasebranch_7_0/gui/wxpython/mapwin/buffered.py	2014-07-24 17:33:11 UTC (rev 61389)
@@ -1094,11 +1094,10 @@
         """
         Debug.msg(4, "BufferedWindow.DrawCross(): pdc=%s, coords=%s, size=%d" % \
                   (pdc, coords, size))
-        coordsCross = ((coords[0] - size, coords[1], coords[0] + size, coords[1]),
-                       (coords[0], coords[1] - size, coords[0], coords[1] + size))
+        coordsCross = ((coords[0], coords[1] - size, coords[0], coords[1] + size),
+                       (coords[0] - size, coords[1], coords[0] + size, coords[1]))
 
-        for lineCoords in coordsCross:
-            self.lineid = self.Draw(pdc, drawid=drawid, pdctype='line', coords=lineCoords, pen=pen)
+        self.lineid = self.Draw(pdc, drawid=drawid, pdctype='lines', coords=coordsCross, pen=pen)
 
         if not text:
             return self.lineid



More information about the grass-commit mailing list