Skip to content

Commit

Permalink
Fix labels on mapscript-set postlabelcache layers (#5142)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Feb 24, 2016
1 parent e50c067 commit 9523495
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mapdraw.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -669,6 +669,12 @@ int msDrawLayer(mapObj *map, layerObj *layer, imageObj *image)
layer->project true to recheck projection needs (Bug #673) */ layer->project true to recheck projection needs (Bug #673) */
layer->project = MS_TRUE; layer->project = MS_TRUE;


/* make sure labelcache setting is set correctly if postlabelcache is set. This is done by the parser but
may have been altered by a mapscript. see #5142 */
if(layer->postlabelcache) {
layer->labelcache = MS_FALSE;
}

if(layer->mask) { if(layer->mask) {
int maskLayerIdx; int maskLayerIdx;
/* render the mask layer in its own imageObj */ /* render the mask layer in its own imageObj */
Expand Down

0 comments on commit 9523495

Please sign in to comment.