Skip to content
Permalink
Browse files
GetStyles: changed layers list from mapLayerFromTypeName to mapLayerF…
…omStyle
  • Loading branch information
elpaso authored and mhugent committed Jan 12, 2014
1 parent d82a399 commit b6f9ddc
Showing 1 changed file with 1 addition and 3 deletions.
@@ -1957,10 +1957,8 @@ QDomDocument QgsProjectParser::getStyles( QStringList& layerList ) const
for ( int i = 0; i < layerList.size(); i++ )
{
QString layerName;
QString typeName;
layerName = layerList.at( i );
typeName = layerName.replace( " ", "_" );
QList<QgsMapLayer*> currentLayerList = mapLayerFromTypeName( typeName );
QList<QgsMapLayer*> currentLayerList = mapLayerFromStyle( layerName, "", true );
if ( currentLayerList.size() < 1 )
{
throw QgsMapServiceException( "Error", QString( "The layer for the TypeName '%1' is not found" ).arg( layerName ) );

0 comments on commit b6f9ddc

Please sign in to comment.