Skip to content

Commit 2c7378b

Browse files
committedOct 23, 2014
expressions: keep brackets (fix #11475)
1 parent 65db7fb commit 2c7378b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsexpression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2414,7 +2414,7 @@ QString QgsExpression::NodeBinaryOperator::dump() const
24142414
QString fmt;
24152415
fmt += lOp && lOp->precedence() < precedence() ? "(%1)" : "%1";
24162416
fmt += " %2 ";
2417-
fmt += rOp && rOp->precedence() < precedence() ? "(%3)" : "%3";
2417+
fmt += rOp && rOp->precedence() <= precedence() ? "(%3)" : "%3";
24182418

24192419
return fmt.arg( mOpLeft->dump() ).arg( BinaryOperatorText[mOp] ).arg( mOpRight->dump() );
24202420
}

0 commit comments

Comments
 (0)
Please sign in to comment.