Skip to content

Commit

Permalink
Fix missing layers in GetCapabilities if only embedded groups are pre…
Browse files Browse the repository at this point in the history
…sent
  • Loading branch information
mhugent committed Feb 19, 2014
1 parent 7ea3390 commit 4eb7c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapserver/qgsprojectparser.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4eb7c9f

Please sign in to comment.