Skip to content

Commit

Permalink
expression: and put blank in front of WHEN too (followup 1844d91)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 26, 2014
1 parent 1d84978 commit d78e05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2337,10 +2337,10 @@ bool QgsExpression::NodeCondition::prepare( QgsExpression* parent, const QgsFiel

QString QgsExpression::NodeCondition::dump() const
{
QString msg = QString( "CASE " );
QString msg = QString( "CASE" );
foreach ( WhenThen* cond, mConditions )
{
msg += QString( "WHEN %1 THEN %2" ).arg( cond->mWhenExp->dump() ).arg( cond->mThenExp->dump() );
msg += QString( " WHEN %1 THEN %2" ).arg( cond->mWhenExp->dump() ).arg( cond->mThenExp->dump() );
}
if ( mElseExp )
msg += QString( " ELSE %1" ).arg( mElseExp->dump() );
Expand Down

0 comments on commit d78e05c

Please sign in to comment.