Skip to content

Commit

Permalink
Fix #42136
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jan 9, 2023
1 parent 95c5f31 commit 09a1cf3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/symbology/qgscategorizedsymbolrenderer.cpp
Expand Up @@ -147,9 +147,7 @@ void QgsRendererCategory::toSld( QDomDocument &doc, QDomElement &element, QVaria
QString filterFunc;
if ( QgsVariantUtils::isNull( mValue ) || mValue.toString().isEmpty() )
{
filterFunc = QStringLiteral( "%1 = '%2' or %1 is null" )
.arg( attrName.replace( '\"', QLatin1String( "\"\"" ) ).append( '"' ).prepend( '"' ),
mValue.toString().replace( '\'', QLatin1String( "''" ) ) );
filterFunc = QStringLiteral( "ELSE" );
}
else
{
Expand Down

0 comments on commit 09a1cf3

Please sign in to comment.