Skip to content
Permalink
Browse files

fix exporting rule

  • Loading branch information
3nids committed Jan 6, 2021
1 parent 849fae3 commit 346a59721d64d2aaf0fa0bec87846832e3e077a9
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/core/symbology/qgsrulebasedrenderer.cpp
@@ -355,9 +355,11 @@ void QgsRuleBasedRenderer::Rule::toSld( QDomDocument &doc, QDomElement &element,

if ( !mFilterExp.isEmpty() )
{
if ( !props.value( QStringLiteral( "filter" ), QString() ).toString().isEmpty() )
props[ QStringLiteral( "filter" )].toString() += QLatin1String( " AND " );
props[ QStringLiteral( "filter" )].toString() += mFilterExp;
QString filter = props.value( QStringLiteral( "filter" ), QString() ).toString();
if ( !filter.isEmpty() )
filter += QLatin1String( " AND " );
filter += mFilterExp;
props[ QStringLiteral( "filter" )] = filter;
}

QgsSymbolLayerUtils::mergeScaleDependencies( mMaximumScale, mMinimumScale, props );

0 comments on commit 346a597

Please sign in to comment.
You can’t perform that action at this time.