Skip to content

Commit

Permalink
fix rendering of cached pixmap symbols on lines (#4433)
Browse files Browse the repository at this point in the history
closes #4433
  • Loading branch information
tbonfort committed Aug 25, 2012
1 parent 5463c8f commit 93e0c3b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mapdraw.c
Expand Up @@ -1175,8 +1175,18 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
pStyle->color = pStyle->outlinecolor;
pStyle->outlinecolor = tmp;
}
if(MS_VALID_COLOR(pStyle->color))
/* draw a valid line, i.e. one with a color defined or of type pixmap*/
if(MS_VALID_COLOR(pStyle->color) ||
(
pStyle->symbol<map->symbolset.numsymbols &&
(
map->symbolset.symbol[pStyle->symbol]->type == MS_SYMBOL_PIXMAP ||
map->symbolset.symbol[pStyle->symbol]->type == MS_SYMBOL_SVG
)
)
) {
msDrawLineSymbol(&map->symbolset, image, &current->shape, pStyle, layer->scalefactor);
}
}
}
}
Expand Down

0 comments on commit 93e0c3b

Please sign in to comment.