Permalink
Browse files

Added status check after msLayerWhichItems() is called in msDrawVecto…

…rLayer(). (#5188)
  • Loading branch information...
sdlime committed Oct 29, 2015
1 parent ad25f15 commit 55f7fc89755854cb95d11334ceb1f76495536ac3
Showing with 6 additions and 2 deletions.
  1. +6 −2 mapdraw.c
View
@@ -916,13 +916,17 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
if(status != MS_SUCCESS) return MS_FAILURE;
/* build item list. STYLEITEM javascript needs the shape attributes */
if (layer->styleitem &&
(strncasecmp(layer->styleitem, "javascript://", 13) == 0)) {
if (layer->styleitem && (strncasecmp(layer->styleitem, "javascript://", 13) == 0)) {
status = msLayerWhichItems(layer, MS_TRUE, NULL);
} else {
status = msLayerWhichItems(layer, MS_FALSE, NULL);
}
if(status != MS_SUCCESS) {
msLayerClose(layer);
return MS_FAILURE;
}
/* identify target shapes */
if(layer->transform == MS_TRUE) {
searchrect = map->extent;

0 comments on commit 55f7fc8

Please sign in to comment.