diff --git a/src/libs/linprog/Constraint.cpp b/src/libs/linprog/Constraint.cpp index 3486d2cb9b..3b2798ffe0 100644 --- a/src/libs/linprog/Constraint.cpp +++ b/src/libs/linprog/Constraint.cpp @@ -227,6 +227,9 @@ Constraint::SetRightSide(double value) if (!fIsValid) return; + if (fRightSide == value) + return; + fRightSide = value; if (!set_rh(fLS->fLP, Index(), fRightSide)) STRACE(("Error in set_rh."));