Permalink
Browse files

Fix cluster with WMS dimension issue (#5364)

  • Loading branch information...
1 parent 3392ca1 commit 45b3594b4379e7bffe3d168ebf7cfa24efcef611 @szekerest szekerest committed Jan 4, 2017
Showing with 6 additions and 1 deletion.
  1. +6 −1 mapcluster.c
View
@@ -1396,7 +1396,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 45b3594

Please sign in to comment.