Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
QGIS server: backport of fix for user SLD
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+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 ); |
|
|