Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mapserver/mapserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Schpidi committed Apr 24, 2012
2 parents bf90207 + 572770e commit 41b1e4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion mapfile.c
Expand Up @@ -4671,7 +4671,7 @@ static void writeOutputformat(FILE *stream, int indent, mapObj *map)

writeOutputformatobject(stream, indent, map->outputformat);
for(i=0; i<map->numoutputformats; i++) {
if(map->outputformatlist[i]->inmapfile == MS_TRUE && strcmp(map->outputformatlist[i]->driver, map->outputformat->driver) != 0)
if(map->outputformatlist[i]->inmapfile == MS_TRUE && strcmp(map->outputformatlist[i]->name, map->outputformat->name) != 0)
writeOutputformatobject(stream, indent, map->outputformatlist[i]);
}
}
Expand Down

0 comments on commit 41b1e4d

Please sign in to comment.