Skip to content
Permalink
Browse files

Fix missing layers in GetCapabilities if only embedded groups are pre…

…sent
  • Loading branch information
mhugent committed Feb 19, 2014
1 parent 7ea3390 commit 4eb7c9faa5c2e46c00c0dfc9d96c79311467cf6c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapserver/qgsprojectparser.cpp
@@ -103,7 +103,7 @@ int QgsProjectParser::numberOfLayers() const
void QgsProjectParser::layersAndStylesCapabilities( QDomElement& parentElement, QDomDocument& doc, const QString& version, bool fullProjectSettings ) const
{
QStringList nonIdentifiableLayers = identifyDisabledLayers();
if ( mProjectLayerElements.size() < 1 )
if ( mProjectLayerElements.size() < 1 && mLegendGroupElements.size() < 1 )
{
return;
}

0 comments on commit 4eb7c9f

Please sign in to comment.
You can’t perform that action at this time.