[GRASS-SVN] r56560 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 2 08:39:25 PDT 2013


Author: annakrat
Date: 2013-06-02 08:39:24 -0700 (Sun, 02 Jun 2013)
New Revision: 56560

Modified:
   grass/trunk/lib/ogsf/Gs3.c
Log:
ogsf: fix initialization of variables

Modified: grass/trunk/lib/ogsf/Gs3.c
===================================================================
--- grass/trunk/lib/ogsf/Gs3.c	2013-06-02 15:18:19 UTC (rev 56559)
+++ grass/trunk/lib/ogsf/Gs3.c	2013-06-02 15:39:24 UTC (rev 56560)
@@ -1097,6 +1097,7 @@
 
     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)) {



More information about the grass-commit mailing list