summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-06-28 21:52:17 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-06-28 22:35:48 +0400
commite3a801e2454eed2e61202bbacca01fe3fcc20c1d (patch)
treef868eedc89ee58cef1226a4114f28d8df94bb344
parent48e1d9c7afe5c2a39d9a08d7a38f7c8ff39d8c84 (diff)
fdo#44582: fix scrollbars in RTL UI
Change-Id: I518e9bcf673ffd1f17ecb51c2c4f962a2f722446
-rw-r--r--vcl/source/control/scrbar.cxx4
1 files 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;