Browse Source

wxGUI/nviz: fix ctypes issue (changed prototype)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42641 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
db281c7e3b
1 changed files with 3 additions and 6 deletions
  1. 3 6
      gui/wxpython/gui_modules/wxnviz.py

+ 3 - 6
gui/wxpython/gui_modules/wxnviz.py

@@ -87,17 +87,14 @@ class Nviz(object):
         Nviz_change_exag(self.data, z_exag)
         
         # determine height
-        hdef = c_float()
-        hmin = c_float()
-        hmax = c_float()
+        hdef = c_double()
+        hmin = c_double()
+        hmax = c_double()
         Nviz_get_exag_height(byref(hdef), byref(hmin), byref(hmax))
         
         Debug.msg(1, "Nviz::SetViewDefault(): hdef=%f, hmin=%f, hmax=%f",
                   hdef.value, hmin.value, hmax.value)
         
-        hdef.value = 805
-        hmin.value = -2944.302979
-        hmax.value = 4555.696777
         return (z_exag, hdef.value, hmin.value, hmax.value)
     
     def SetView(self, x, y, height, persp, twist):