Skip to content

Commit

Permalink
expressions: keep brackets (fix #11475)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 23, 2014
1 parent 65db7fb commit 2c7378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsexpression.cpp
Expand Up @@ -2414,7 +2414,7 @@ QString QgsExpression::NodeBinaryOperator::dump() const
QString fmt;
fmt += lOp && lOp->precedence() < precedence() ? "(%1)" : "%1";
fmt += " %2 ";
fmt += rOp && rOp->precedence() < precedence() ? "(%3)" : "%3";
fmt += rOp && rOp->precedence() <= precedence() ? "(%3)" : "%3";

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

0 comments on commit 2c7378b

Please sign in to comment.