Skip to content
Permalink
Browse files

Quote field names when converting renderers

Fix #13800
  • Loading branch information
m-kuhn committed Nov 10, 2015
1 parent 81bbb82 commit cb5f7485d6b56afe655efff265af56711e0088f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
@@ -1214,7 +1214,7 @@ QgsRuleBasedRendererV2* QgsRuleBasedRendererV2::convertFromRenderer( const QgsFe
}
else
{
expression = categorizedRenderer->classAttribute() + " = " + value;
expression = QString( "\"%1\" = %2" ).arg( categorizedRenderer->classAttribute(), value );

This comment has been minimized.

Copy link
@jef-n

jef-n Nov 10, 2015

Member

QgsExpression::quotedColumnRef?

This comment has been minimized.

Copy link
@m-kuhn

m-kuhn Nov 10, 2015

Author Member

Good idea, done

}
rule->setFilterExpression( expression );

0 comments on commit cb5f748

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