Skip to content

Commit

Permalink
Merge branch 'branch-6-2'
Browse files Browse the repository at this point in the history
Conflicts:
	maplegend.c
  • Loading branch information
szekerest committed May 7, 2013
2 parents 772dcf2 + 929ed6f commit eb76e3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions maplegend.c
Expand Up @@ -258,11 +258,13 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
if((lp->maxscaledenom > 0) && (map->scaledenom > lp->maxscaledenom)) continue;
if((lp->minscaledenom > 0) && (map->scaledenom <= lp->minscaledenom)) continue;
}
if (theclass->styles[i]->_geomtransform.type != MS_GEOMTRANSFORM_NONE)
if (theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_NONE ||
theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOINT ||
theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOLY)
msDrawLineSymbol(&map->symbolset, image_draw, &zigzag, theclass->styles[i], lp->scalefactor);
else
msDrawTransformedShape(map, &map->symbolset, image_draw, &zigzag,
theclass->styles[i], lp->scalefactor);
else
msDrawLineSymbol(&map->symbolset, image_draw, &zigzag, theclass->styles[i], lp->scalefactor);
}

free(zigzag.line[0].point);
Expand All @@ -280,7 +282,9 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
}
}
for(i=0; i<theclass->numstyles; i++)
if (theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_NONE)
if (theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_NONE ||
theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOINT ||
theclass->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOLY)
msDrawShadeSymbol(&map->symbolset, image_draw, &box, theclass->styles[i], lp->scalefactor);
else
msDrawTransformedShape(map, &map->symbolset, image_draw, &box,
Expand Down

0 comments on commit eb76e3a

Please sign in to comment.