this bug's URL: http://intevation.de/rt/webrt?serial_num=2525
-------------------------------------------------------------------------
Subject: starting nviz from tcltkgui
Hallo,
I found a bug in the function GS_get_zrange_nz: The aim of this
function is to set the min and max z value of a list of surfaces.
This is used for example by NVIZ.
However, if nviz is called from tcltkgrass no surface is provided
and since GS_get_zrange_nz doesn't initialize zmin and zmax with
default values this leads to harzardous values. (In my case NVIZ
crashed, since the values became to big.)
I add a little patch which solves the problem for me: just
initialize min and max with 0. Perhaps someone could check whether
this is could be integrated into the cvs.
Greetings,
Silke
----------------------------------
--- lib/ogsf/GS2.c.orig 2004-07-07 18:13:30.827228952 +0200
+++ lib/ogsf/GS2.c 2004-07-07 18:13:36.259403136 +0200
@@ -2046,6 +2046,8 @@
int i, first = 1;
geosurf *gs;
+ *min = 0;
+ *max = 0;
for (i = 0; i < Next_surf; i++) {
if (gs = gs_get_surf(Surf_ID[i])) {
if (first) {
-------------------------------------------- Managed by Request Tracker