dont send notifications if the value is not changed by the user

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17377 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2006-05-08 21:46:48 +00:00
parent 3d8b4bab1f
commit 3b55bd0c3c
1 changed files with 3 additions and 1 deletions

View File

@ -273,7 +273,9 @@ SeekSlider::ResizeToPreferred()
void
SeekSlider::SetPosition(float position)
{
SetValue(fMinValue + (int32)floorf((fMaxValue - fMinValue) * position + 0.5));
int32 value = fMinValue + (int32)floorf((fMaxValue - fMinValue) * position + 0.5);
if (value != Value())
BControl::SetValue(value);
}