Skip to content

Commit d78e05c

Browse files
committed
expression: and put blank in front of WHEN too (followup 1844d91)
1 parent 1d84978 commit d78e05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsexpression.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2337,10 +2337,10 @@ bool QgsExpression::NodeCondition::prepare( QgsExpression* parent, const QgsFiel
23372337

23382338
QString QgsExpression::NodeCondition::dump() const
23392339
{
2340-
QString msg = QString( "CASE " );
2340+
QString msg = QString( "CASE" );
23412341
foreach ( WhenThen* cond, mConditions )
23422342
{
2343-
msg += QString( "WHEN %1 THEN %2" ).arg( cond->mWhenExp->dump() ).arg( cond->mThenExp->dump() );
2343+
msg += QString( " WHEN %1 THEN %2" ).arg( cond->mWhenExp->dump() ).arg( cond->mThenExp->dump() );
23442344
}
23452345
if ( mElseExp )
23462346
msg += QString( " ELSE %1" ).arg( mElseExp->dump() );

0 commit comments

Comments
 (0)