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 b6f9ddcfa5039d87b9e4e2e4abf3c6b94e11c31e
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/mapserver/qgsprojectparser.cpp
@@ -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.
You can’t perform that action at this time.