* The slider position was actually computed incorrectly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30072 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-04-09 17:10:43 +00:00
parent b847381250
commit cd7f1893eb
+1 -1
View File
@@ -679,7 +679,7 @@ BSlider::SetValue(int32 value)
range = 1;
float pos = (float)(value - fMinValue) / range *
_MaxPosition() - _MinPosition();
(_MaxPosition() - _MinPosition());
if (fOrientation == B_HORIZONTAL) {
loc.x = ceil(_MinPosition() + pos);