Skip to content

Commit

Permalink
wxGUI/nviz: fix ctypes issue (changed prototype)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42641 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
landam committed Jun 23, 2010
1 parent f3e418e commit db281c7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions gui/wxpython/gui_modules/wxnviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,14 @@ def SetViewDefault(self):
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):
Expand Down

0 comments on commit db281c7

Please sign in to comment.