Permalink
Browse files

Fix rendering annotation layers with expressions in legend (#4641)

  • Loading branch information...
1 parent 03eff67 commit 40d2372d9e9d06a140aeef345d5ab02a1ebe95ec @szekerest szekerest committed Apr 29, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 maplegend.c
View
@@ -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:

0 comments on commit 40d2372

Please sign in to comment.