summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAbdulaziz A Alayed <aalayed@kacst.edu.sa>2013-05-24 13:11:31 +0300
committerAndras Timar <andras.timar@collabora.com>2013-11-05 10:51:14 +0100
commit84411d7619aedcc7e7a36c53d064de6ed244d779 (patch)
treee2b9121a36d2beae340a842055c604ed7d523228 /vcl
parent6074f8f24b95927d09602f1b5362e42bfce16411 (diff)
fdo#63254 UI:Horizontal scroll bar isn't displayed when RTL tab
opened with LTR UI. Change-Id: Iff6899539fe0b1788df7b09f91f850b91bcdb811 Reviewed-on: https://gerrit.libreoffice.org/4024 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com> Signed-off-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index e15fbfaefcdf..145585031d74 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1041,8 +1041,9 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1;
if (!rNativeContentRegion.GetHeight())
rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1;
-
- returnVal = true;
+ //fdo#63254 horizontal scrool bar isn't displayed in RTL tab
+ // with LTR UI in calc
+ returnVal =Application::GetSettings().GetLayoutRTL();
//See fdo#44582, Horizontal scrollbar in navigator window is broken
if ((nPart==PART_BUTTON_LEFT || nPart==PART_BUTTON_RIGHT) && Application::GetSettings().GetLayoutRTL())