Skip to content

Commit

Permalink
Fix rendering annotation layers with expressions in legend (#4641)
Browse files Browse the repository at this point in the history
  • Loading branch information
szekerest committed May 1, 2013
1 parent 03eff67 commit 40d2372
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maplegend.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,22 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
int lpos = label->position;
int loffsetx = label->offsetx;
int loffsety = label->offsety;
int lstatus = label->status;

label->offsetx = 0;
label->offsety = 0;
label->angle = 0;
label->position = MS_CC;
if (label->type == MS_TRUETYPE) label->size = height;
label->status = MS_ON;
msDrawLabel(map, image_draw, marker, (char*)"Az", label,1.0);

label->size = lsize;
label->position = lpos;
label->angle = langle;
label->offsetx = loffsetx;
label->offsety = loffsety;
label->status = lstatus;
}
break;
case MS_LAYER_POINT:
Expand Down

0 comments on commit 40d2372

Please sign in to comment.