diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2015-08-26 15:29:15 +0000 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-08-27 16:15:09 +0000 |
commit | 125fd9e3df5b33b9cd80de1ee3e4fa64c8587387 (patch) | |
tree | f12e875988e74cdfda52834d29c3899afa3bbdd5 | |
parent | 867bffb0fddbb9311e90f6426b4399f6d2a071d2 (diff) |
tdf#80512 KDE4: fix RTL scrollbar handling
Just invert the scrollbar the same way gtk+ does by checking the
button positions and adjust the drawing style accordingly.
Change-Id: I3475c33e074c1509a73da618a4efa44dc61a1a77
(cherry picked from commit 273df1762707d1d44c9f9b3911e06f7a5a4fa08f)
Reviewed-on: https://gerrit.libreoffice.org/18033
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r-- | vcl/unx/kde4/KDESalGraphics.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/kde4/KDESalGraphics.cxx b/vcl/unx/kde4/KDESalGraphics.cxx index 7e1a8810ed8d..a1a5351170d4 100644 --- a/vcl/unx/kde4/KDESalGraphics.cxx +++ b/vcl/unx/kde4/KDESalGraphics.cxx @@ -475,6 +475,8 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part, option.sliderValue = sbVal->mnCur; option.sliderPosition = sbVal->mnCur; option.pageStep = sbVal->mnVisibleSize; + if (part == PART_DRAW_BACKGROUND_HORZ) + option.upsideDown = sbVal->maButton1Rect.Left() > sbVal->maButton2Rect.Left(); //setup the active control...always the slider if (sbVal->mnThumbState & ControlState::ROLLOVER) |