[GRASS-SVN] r56574 - grass/branches/releasebranch_6_4/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 3 11:34:56 PDT 2013


Author: annakrat
Date: 2013-06-03 11:34:56 -0700 (Mon, 03 Jun 2013)
New Revision: 56574

Modified:
   grass/branches/releasebranch_6_4/lib/ogsf/Gs3.c
Log:
ogsf: fix initialization of variables (merge from trunk, r56560)

Modified: grass/branches/releasebranch_6_4/lib/ogsf/Gs3.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/ogsf/Gs3.c	2013-06-03 18:24:39 UTC (rev 56573)
+++ grass/branches/releasebranch_6_4/lib/ogsf/Gs3.c	2013-06-03 18:34:56 UTC (rev 56574)
@@ -1150,6 +1150,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