Permalink
Browse files

Fix cluster with WMS dimension issue (#5364)

  • Loading branch information...
szekerest committed Jan 4, 2017
1 parent 722716c commit 1a65c6209f6a1241fc3432e35d91bdde563b1d2e
Showing with 6 additions and 1 deletion.
  1. +6 −1 mapcluster.c
View
@@ -1440,7 +1440,12 @@ int msClusterLayerOpen(layerObj *layer)
return MS_FAILURE;
if (layer->layerinfo)
- return MS_SUCCESS; /* already open */
+ {
+ if (layer->vtable->LayerOpen != msClusterLayerOpen)
+ msLayerClose(layer);
+ else
+ return MS_SUCCESS; /* already open */
+ }
layerinfo = msClusterInitialize(layer);

0 comments on commit 1a65c62

Please sign in to comment.