Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preserve formatting of expressions for datadefined symbology
Followup 6fb347d
  • Loading branch information
m-kuhn committed Feb 8, 2015
1 parent 0ed6cfa commit a7baf39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsdatadefined.cpp
Expand Up @@ -36,8 +36,8 @@ QgsDataDefined::QgsDataDefined( bool active,
QgsDataDefined::QgsDataDefined( const QgsExpression * expression )
: mActive( bool( expression ) )
, mUseExpression( expression && expression->rootNode() && !dynamic_cast<const QgsExpression::NodeColumnRef*>( expression->rootNode() ) )
, mExpressionString( mUseExpression ? expression->dump() : "" )
, mField( !mUseExpression ? ( expression ? expression->dump() : "" ) : "" )
, mExpressionString( mUseExpression ? expression->expression() : "" )
, mField( !mUseExpression ? ( expression ? expression->expression() : "" ) : "" )
{
mExpression = 0;
mExpressionPrepared = false;
Expand Down

0 comments on commit a7baf39

Please sign in to comment.