[GRASS-SVN] r45686 - grass-addons/gui/wxpython/psmap/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 17 15:58:04 EDT 2011


Author: annakrat
Date: 2011-03-17 12:58:04 -0700 (Thu, 17 Mar 2011)
New Revision: 45686

Modified:
   grass-addons/gui/wxpython/psmap/gui_modules/psmap.py
Log:
zooming changed

Modified: grass-addons/gui/wxpython/psmap/gui_modules/psmap.py
===================================================================
--- grass-addons/gui/wxpython/psmap/gui_modules/psmap.py	2011-03-17 19:53:24 UTC (rev 45685)
+++ grass-addons/gui/wxpython/psmap/gui_modules/psmap.py	2011-03-17 19:58:04 UTC (rev 45686)
@@ -1300,8 +1300,8 @@
             if self.mouse['use'] == 'zoomout':
                 zoomFactor = 1./zoomFactor
             x,y = self.mouse['begin']
-            xView = x - cW/(zoomFactor * 2)
-            yView = y - cH/(zoomFactor * 2)
+            xView = x - x/zoomFactor#x - cW/(zoomFactor * 2)
+            yView = y - y/zoomFactor#y - cH/(zoomFactor * 2)
 
         else:   #dragging    
             rW, rH = float(rect.GetWidth()), float(rect.GetHeight())



More information about the grass-commit mailing list