Skip to content
Permalink
Browse files

expressions: keep brackets (fix #11475)

  • Loading branch information
jef-n committed Oct 23, 2014
1 parent 65db7fb commit 2c7378bb16f7e6433363340b9c16e40c3ad654ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsexpression.cpp
@@ -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() );
}

0 comments on commit 2c7378b

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