Skip to content

Commit a7baf39

Browse files
committed
Preserve formatting of expressions for datadefined symbology
Followup 6fb347d
1 parent 0ed6cfa commit a7baf39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsdatadefined.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ QgsDataDefined::QgsDataDefined( bool active,
3636
QgsDataDefined::QgsDataDefined( const QgsExpression * expression )
3737
: mActive( bool( expression ) )
3838
, mUseExpression( expression && expression->rootNode() && !dynamic_cast<const QgsExpression::NodeColumnRef*>( expression->rootNode() ) )
39-
, mExpressionString( mUseExpression ? expression->dump() : "" )
40-
, mField( !mUseExpression ? ( expression ? expression->dump() : "" ) : "" )
39+
, mExpressionString( mUseExpression ? expression->expression() : "" )
40+
, mField( !mUseExpression ? ( expression ? expression->expression() : "" ) : "" )
4141
{
4242
mExpression = 0;
4343
mExpressionPrepared = false;

0 commit comments

Comments
 (0)