[mapserver-commits] r9319 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Sep 18 21:02:59 EDT 2009
Author: assefa
Date: 2009-09-18 21:02:58 -0400 (Fri, 18 Sep 2009)
New Revision: 9319
Modified:
trunk/mapserver/mapchart.c
Log:
correct build on windows
Modified: trunk/mapserver/mapchart.c
===================================================================
--- trunk/mapserver/mapchart.c 2009-09-18 23:06:32 UTC (rev 9318)
+++ trunk/mapserver/mapchart.c 2009-09-19 01:02:58 UTC (rev 9319)
@@ -353,14 +353,14 @@
const char *chartRangeProcessingKey=NULL;
char *attrib;
float mindiameter=-1, maxdiameter, minvalue, maxvalue;
+ classObj *newclass;
+ styleObj *newstyle;
const char *chartSizeProcessingKey=msLayerGetProcessingKey( layer,"CHART_SIZE" );
if(chartSizeProcessingKey != NULL)
return MS_FALSE;
chartRangeProcessingKey=msLayerGetProcessingKey( layer,"CHART_SIZE_RANGE" );
if(chartRangeProcessingKey==NULL)
return MS_FALSE;
- classObj *newclass;
- styleObj *newstyle;
attrib = malloc(strlen(chartRangeProcessingKey)+1);
switch(sscanf(chartRangeProcessingKey,"%s %f %f %f %f",attrib,
&mindiameter,&maxdiameter,&minvalue,&maxvalue))
@@ -532,6 +532,7 @@
float *values;
styleObj **styles;
pointObj center;
+ float barMaxVal,barMinVal;
int numvalues = layer->numclasses;
if(chartSizeProcessingKey==NULL)
{
@@ -550,7 +551,6 @@
return MS_FAILURE;
}
}
- float barMaxVal,barMinVal;
if(barMax){
if(sscanf(barMax,"%f",&barMaxVal)!=1) {
More information about the mapserver-commits
mailing list