diff options
author | Issa Alkurtass <ialkurtass@kacst.edu.sa> | 2012-12-17 13:06:24 +0300 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-12-20 12:58:43 +0000 |
commit | 53f23ca68dda1011f97bb28d672c7198e9e12c90 (patch) | |
tree | 89507648c66cb6f040797875b61c5389a36a2228 /svtools | |
parent | fdo#38837: Timers must end eventually [Writer idle timer] (diff) | |
download | core-53f23ca68dda1011f97bb28d672c7198e9e12c90.tar.gz core-53f23ca68dda1011f97bb28d672c7198e9e12c90.zip |
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@gmail.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 25efc704ff6e..4438779af611 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; } |