[GRASS-SVN] r58470 - grass/trunk/gui/wxpython/iscatt
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 16 03:09:04 PST 2013
Author: turek
Date: 2013-12-16 03:09:03 -0800 (Mon, 16 Dec 2013)
New Revision: 58470
Modified:
grass/trunk/gui/wxpython/iscatt/plots.py
Log:
wx.iscatt: zoom to rectangle fix
Modified: grass/trunk/gui/wxpython/iscatt/plots.py
===================================================================
--- grass/trunk/gui/wxpython/iscatt/plots.py 2013-12-16 10:30:06 UTC (rev 58469)
+++ grass/trunk/gui/wxpython/iscatt/plots.py 2013-12-16 11:09:03 UTC (rev 58470)
@@ -349,6 +349,16 @@
if x1 == x2 or y1 == y2:
return
+ if x1 > x2:
+ tmp = x1
+ x1 = x2
+ x2 = tmp
+
+ if y1 > y2:
+ tmp = y1
+ y1 = y2
+ y2 = tmp
+
self.axes.axis((x1, x2, y1, y2))
#self.axes.set_xlim(x1, x2)#, auto = True)
#self.axes.set_ylim(y1, y2)#, auto = True)
More information about the grass-commit
mailing list