From e3a801e2454eed2e61202bbacca01fe3fcc20c1d Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Fri, 28 Jun 2013 21:52:17 +0400 Subject: fdo#44582: fix scrollbars in RTL UI Change-Id: I518e9bcf673ffd1f17ecb51c2c4f962a2f722446 --- vcl/source/control/scrbar.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index b32691500806..d283daf0eb1c 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -317,9 +317,9 @@ void ScrollBar::ImplCalc( sal_Bool bUpdate ) if ( GetStyle() & WB_HORZ ) { - if ( GetNativeControlRegion( CTRL_SCROLLBAR, PART_BUTTON_LEFT, + if ( GetNativeControlRegion( CTRL_SCROLLBAR, IsRTLEnabled()? PART_BUTTON_RIGHT: PART_BUTTON_LEFT, aControlRegion, 0, ImplControlValue(), OUString(), aBoundingRegion, aBtn1Region ) && - GetNativeControlRegion( CTRL_SCROLLBAR, PART_BUTTON_RIGHT, + GetNativeControlRegion( CTRL_SCROLLBAR, IsRTLEnabled()? PART_BUTTON_LEFT: PART_BUTTON_RIGHT, aControlRegion, 0, ImplControlValue(), OUString(), aBoundingRegion, aBtn2Region ) ) { maBtn1Rect = aBtn1Region; -- cgit