[PATCH] fdo#44582 fixing horizontal scroll bar in sub windows
Abdulaziz A Alayed (via Code Review)
gerrit at gerrit.libreoffice.org
Tue Jan 22 00:47:08 PST 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/1806
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/06/1806/1
fdo#44582 fixing horizontal scroll bar in sub windows
Change-Id: Ifea57dec77c5b23771684a1e46267f8431478075
---
M vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index 46a4c01..00abced 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1036,11 +1036,14 @@
rNativeContentRegion = rNativeBoundingRegion;
//See fdo#33523, possibly makes sense to do this test for all return values
- if (!rNativeContentRegion.GetWidth())
- rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1;
- if (!rNativeContentRegion.GetHeight())
- rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1;
- returnVal = sal_True;
+ if(!Application::GetSettings().GetLayoutRTL())
+ {
+ if (!rNativeContentRegion.GetWidth())
+ rNativeContentRegion.Right() = rNativeContentRegion.Left() + 1;
+ if (!rNativeContentRegion.GetHeight())
+ rNativeContentRegion.Bottom() = rNativeContentRegion.Top() + 1;
+ returnVal = sal_True;
+ }
}
if( (nType == CTRL_MENUBAR) && (nPart == PART_ENTIRE_CONTROL) )
{
--
To view, visit https://gerrit.libreoffice.org/1806
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifea57dec77c5b23771684a1e46267f8431478075
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Abdulaziz A Alayed <aalayed at kacst.edu.sa>
More information about the LibreOffice
mailing list