Browse Source

ogsf: fix initialization of variables

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56560 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 years ago
parent
commit
0044201012
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/ogsf/Gs3.c

+ 1 - 0
lib/ogsf/Gs3.c

@@ -1097,6 +1097,7 @@ int Gs_update_attrange(geosurf * gs, int desc)
 
     if (CONST_ATT == gs_get_att_src(gs, desc)) {
 	gs->att[desc].max_nz = gs->att[desc].min_nz = gs->att[desc].constant;
+	min = max = gs->att[desc].constant;
 	gs->att[desc].range_nz = 0.0;
     }
     else if (CF_COLOR_PACKED & gsds_get_changed(gs->att[desc].hdata)) {