Skip to content

Commit

Permalink
Fix build problem with MSVC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Apr 22, 2012
1 parent 6e02a5f commit 346b25f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mapchart.c
Expand Up @@ -338,6 +338,8 @@ int msDrawPieChartLayer(mapObj *map, layerObj *layer, imageObj *image)
styleObj **styles;
pointObj center;
int numvalues = layer->numclasses; /* the number of classes to represent in the graph */
int numvalues_for_shape = 0;

if(chartSizeProcessingKey==NULL)
{
chartRangeProcessingKey=msLayerGetProcessingKey( layer,"CHART_SIZE_RANGE" );
Expand Down Expand Up @@ -369,7 +371,6 @@ int msDrawPieChartLayer(mapObj *map, layerObj *layer, imageObj *image)
return MS_FAILURE;
}

int numvalues_for_shape = 0;
while(MS_SUCCESS == getNextShape(map,layer,values,&numvalues_for_shape,styles,&shape)) {
if(chartRangeProcessingKey!=NULL)
numvalues_for_shape--;
Expand Down

0 comments on commit 346b25f

Please sign in to comment.