[GRASS-SVN] r35806 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 8 10:18:11 EST 2009


Author: martinl
Date: 2009-02-08 10:18:10 -0500 (Sun, 08 Feb 2009)
New Revision: 35806

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
Log:
wxGUI/nviz: unused code commeted out (trac #481)


Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2009-02-08 15:09:13 UTC (rev 35805)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2009-02-08 15:18:10 UTC (rev 35806)
@@ -190,9 +190,10 @@
     def OnMouseAction(self, event):
         # change position
         if event.Dragging() and event.LeftIsDown():
-            self.lastX = self.lastY = self.x = self.y
-            self.x, self.y = event.GetPosition()
-            self.Refresh(False)
+            ### self.lastX = self.lastY = self.x = self.y
+            ### self.x, self.y = event.GetPosition()
+            ### self.Refresh(False)
+            pass
 
         # change perspective with mouse wheel
         wheel = event.GetWheelRotation()
@@ -228,7 +229,7 @@
 
     def OnLeftDown(self, event):
         self.CaptureMouse()
-        self.x, self.y = self.lastX, self.lastY = event.GetPosition()
+        ### self.x, self.y = self.lastX, self.lastY = event.GetPosition()
         
     def OnLeftUp(self, event):
         self.ReleaseMouse()



More information about the grass-commit mailing list