We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent d82a399 commit b6f9ddcCopy full SHA for b6f9ddc
src/mapserver/qgsprojectparser.cpp
@@ -1957,10 +1957,8 @@ QDomDocument QgsProjectParser::getStyles( QStringList& layerList ) const
1957
for ( int i = 0; i < layerList.size(); i++ )
1958
{
1959
QString layerName;
1960
- QString typeName;
1961
layerName = layerList.at( i );
1962
- typeName = layerName.replace( " ", "_" );
1963
- QList<QgsMapLayer*> currentLayerList = mapLayerFromTypeName( typeName );
+ QList<QgsMapLayer*> currentLayerList = mapLayerFromStyle( layerName, "", true );
1964
if ( currentLayerList.size() < 1 )
1965
1966
throw QgsMapServiceException( "Error", QString( "The layer for the TypeName '%1' is not found" ).arg( layerName ) );
0 commit comments