Commit bc79725e authored by Stefanie Gareis's avatar Stefanie Gareis
Browse files

resolving this issue

refs 950
parent 48208ca9
...@@ -28,7 +28,7 @@ import org.fortiss.af3.project.model.typesystem.ITerm; ...@@ -28,7 +28,7 @@ import org.fortiss.af3.project.model.typesystem.ITerm;
* @author hoelzl * @author hoelzl
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating GREEN Hash: C437EFAA63017D259E330119A4F1E6E4 * @ConQAT.Rating YELLOW Hash: 395EACBFF67DF2EE75C63A1ECC7E77B8
*/ */
public final class OperatorStrengthUtils { public final class OperatorStrengthUtils {
...@@ -101,7 +101,11 @@ public final class OperatorStrengthUtils { ...@@ -101,7 +101,11 @@ public final class OperatorStrengthUtils {
if(outer != null) { if(outer != null) {
int outerStr = getOperatorStrength(outer); int outerStr = getOperatorStrength(outer);
int innerStr = getOperatorStrength(inner); int innerStr = getOperatorStrength(inner);
if(innerStr > outerStr) {
// Due to Issue #950 (i.e. correct rendering of the parsed expression "a - (b + c + d)")
// ,
// we must have in the if below a greater-equal
if(innerStr >= outerStr) {
return '(' + string + ')'; return '(' + string + ')';
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment