Small optimization.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38642 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-09-14 05:11:15 +00:00
parent 73e5249c79
commit e16e4d4de1

View File

@ -227,6 +227,9 @@ Constraint::SetRightSide(double value)
if (!fIsValid) if (!fIsValid)
return; return;
if (fRightSide == value)
return;
fRightSide = value; fRightSide = value;
if (!set_rh(fLS->fLP, Index(), fRightSide)) if (!set_rh(fLS->fLP, Index(), fRightSide))
STRACE(("Error in set_rh.")); STRACE(("Error in set_rh."));