[Libreoffice-commits] .: Branch 'libreoffice-3-6' - svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 20 07:22:09 PST 2012
svtools/source/control/tabbar.cxx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 85796e4759e67e8bcdd6b6c47206bbb7df2c546c
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)
Signed-off-by: Eike Rathke <erack at redhat.com>
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index a922241..3cbb2b6 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1765,8 +1765,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