Skip to content
Permalink
Browse files
QGIS server: backport of fix for user SLD
  • Loading branch information
mhugent committed Mar 13, 2012
1 parent 44971f8 commit b0bfda368653f54567208041c1320c9cfebf5a4d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/mapserver/qgssldparser.cpp
@@ -286,14 +286,15 @@ QList<QgsMapLayer*> QgsSLDParser::mapLayerFromStyle( const QString& layerName, c
QDomElement userStyleElement = findUserStyleElement( namedLayerElemList[i], styleName );
if ( !userStyleElement.isNull() )
{
fallbackLayerList = mFallbackParser->mapLayerFromStyle( layerName, "", allowCaching );
fallbackLayerList = mFallbackParser->mapLayerFromStyle( layerName, "", false );
if ( fallbackLayerList.size() > 0 )
{
QgsVectorLayer* v = dynamic_cast<QgsVectorLayer*>( fallbackLayerList.at( 0 ) );
if ( v )
{
QgsRenderer* r = rendererFromUserStyle( userStyleElement, v );
v->setRenderer( r );
v->setUsingRendererV2( false );
labelSettingsFromUserStyle( userStyleElement, v );
#ifdef DIAGRAMSERVER
overlaysFromUserStyle( userStyleElement, v );

0 comments on commit b0bfda3

Please sign in to comment.