mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix missing layers in GetCapabilities if only embedded groups are present
This commit is contained in:
parent
7ea3390950
commit
4eb7c9faa5
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user