[Libreoffice-commits] .: Branch 'libreoffice-4-0' - svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 07:20:26 PST 2012
svtools/source/control/tabbar.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit df7148afb1cb81a14592befb20ca21fdc01eee9c
Author: Issa Alkurtass <ialkurtass at kacst.edu.sa>
Date: Mon Dec 17 13:06:24 2012 +0300
fdo#56970 Fixed insert new sheet button for different directionality
Fixed position of insert new sheet button (+) when using a sheet with
a different directionality than that of the interface.
Change-Id: Ifc7020c4eb7a1686c23b4d827c47494b88a236b5
Reviewed-on: https://gerrit.libreoffice.org/1385
Tested-by: Lior Kaplan <kaplanlior at gmail.com>
Reviewed-by: Eike Rathke <erack at redhat.com>
(cherry picked from commit 53f23ca68dda1011f97bb28d672c7198e9e12c90)
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 25efc70..4438779a 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1760,8 +1760,12 @@ Rectangle TabBar::ImplGetInsertTabRect(ImplTabBarItem* pItem) const
if (mbHasInsertTab && pItem)
{
Rectangle aInsTabRect = pItem->maRect;
- aInsTabRect.setX(
- aInsTabRect.getX() + aInsTabRect.getWidth() - TABBAR_OFFSET_X - TABBAR_OFFSET_X2);
+ if ( !mbMirrored )
+ aInsTabRect.setX(
+ aInsTabRect.getX() + aInsTabRect.getWidth() - TABBAR_OFFSET_X - TABBAR_OFFSET_X2);
+ else
+ aInsTabRect.setX(
+ aInsTabRect.getX() - 3*TABBAR_OFFSET_X - TABBAR_OFFSET_X2);
aInsTabRect.setWidth(32);
return aInsTabRect;
}
More information about the Libreoffice-commits
mailing list