Permalink
Browse files

Legend icon for label layers should not rotate (#5391)

  • Loading branch information...
szekerest committed Feb 20, 2017
1 parent fc36c0a commit f125a134011b9ff3842a5a99d3592b02e82cec41
Showing with 1 addition and 0 deletions.
  1. +1 −0 maplegend.c
View
@@ -387,6 +387,7 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
initTextSymbol(&ts);
msPopulateTextSymbolForLabelAndString(&ts,theclass->labels[0],msStrdup("Az"),lp->scalefactor*image_draw->resolutionfactor,image_draw->resolutionfactor, duplicate_always);
ts.label->size = height - 1;
+ ts.rotation = 0;
ret = msComputeTextPath(map,&ts);
if(UNLIKELY(ret == MS_FAILURE)) goto legend_icon_cleanup;
textstartpt = get_metrics(&marker,MS_CC,ts.textpath,0,0,0,0,NULL);

0 comments on commit f125a13

Please sign in to comment.