فهرست منبع

wxGUI/nviz: unused code commeted out (trac https://trac.osgeo.org/grass/ticket/481)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35806 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 سال پیش
والد
کامیت
c3034d594e
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      gui/wxpython/gui_modules/nviz_mapdisp.py

+ 5 - 4
gui/wxpython/gui_modules/nviz_mapdisp.py

@@ -190,9 +190,10 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
     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 @@ class GLWindow(MapWindow, glcanvas.GLCanvas):
 
     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()