From c280e11b896eb094afd168f8216639d3839dfb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 29 Jun 2005 02:20:12 +0000 Subject: [PATCH] The update region for B_VERTICAL orientation is different; it now also works correctly when fUseFillColor is used. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13343 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Slider.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Slider.cpp b/src/kits/interface/Slider.cpp index 1c58acf672..687ad04cee 100644 --- a/src/kits/interface/Slider.cpp +++ b/src/kits/interface/Slider.cpp @@ -610,7 +610,10 @@ BSlider::SetValue(int32 value) // While it would be enough to do this dependent on fUseFillColor, // that doesn't work out if DrawBar() has been overridden by a sub class - oldThumbFrame.top = BarFrame().top; + if (fOrientation == B_HORIZONTAL) + oldThumbFrame.top = BarFrame().top; + else + oldThumbFrame.right = BarFrame().right; _SetLocation(loc);