Skip to content

Commit

Permalink
fix bug with uncached/cached shapes (#4371)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Jul 19, 2012
1 parent d8763a7 commit 67f2784
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mapdraw.c
Expand Up @@ -1039,7 +1039,6 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
}

if (cache) {
drawmode |= MS_DRAWMODE_SINGLESTYLE;
styleObj *pStyle = layer->class[shape.classindex]->styles[0];
colorObj tmp;
if (pStyle->outlinewidth > 0) {
Expand All @@ -1063,7 +1062,7 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
pStyle->color = pStyle->outlinecolor;
pStyle->outlinecolor = tmp;
}
status = msDrawShape(map, layer, &shape, image, 0, drawmode); /* draw a single style */
status = msDrawShape(map, layer, &shape, image, 0, drawmode|MS_DRAWMODE_SINGLESTYLE); /* draw a single style */
if (pStyle->outlinewidth > 0) {
/*
* RFC 49 implementation: switch back the styleobj to its
Expand Down

0 comments on commit 67f2784

Please sign in to comment.