Skip to content
Permalink
Browse files

Preserve formatting of expressions for datadefined symbology

Followup 6fb347d
  • Loading branch information
m-kuhn committed Feb 8, 2015
1 parent 0ed6cfa commit a7baf3965233cf1024ff89b69d131b609fe510ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsdatadefined.cpp
@@ -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;

0 comments on commit a7baf39

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