Skip to content

Commit

Permalink
Legend icon for label layers should not rotate (#5391)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed Feb 20, 2017
1 parent fc36c0a commit f125a13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maplegend.c
Expand Up @@ -387,6 +387,7 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
initTextSymbol(&ts); initTextSymbol(&ts);
msPopulateTextSymbolForLabelAndString(&ts,theclass->labels[0],msStrdup("Az"),lp->scalefactor*image_draw->resolutionfactor,image_draw->resolutionfactor, duplicate_always); msPopulateTextSymbolForLabelAndString(&ts,theclass->labels[0],msStrdup("Az"),lp->scalefactor*image_draw->resolutionfactor,image_draw->resolutionfactor, duplicate_always);
ts.label->size = height - 1; ts.label->size = height - 1;
ts.rotation = 0;
ret = msComputeTextPath(map,&ts); ret = msComputeTextPath(map,&ts);
if(UNLIKELY(ret == MS_FAILURE)) goto legend_icon_cleanup; if(UNLIKELY(ret == MS_FAILURE)) goto legend_icon_cleanup;
textstartpt = get_metrics(&marker,MS_CC,ts.textpath,0,0,0,0,NULL); textstartpt = get_metrics(&marker,MS_CC,ts.textpath,0,0,0,0,NULL);
Expand Down

0 comments on commit f125a13

Please sign in to comment.