svtools/source/control/tabbar.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 85796e4759e67e8bcdd6b6c47206bbb7df2c546c Author: Issa Alkurtass <ialkurt...@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 <kaplanl...@gmail.com> Reviewed-by: Eike Rathke <er...@redhat.com> (cherry picked from commit 53f23ca68dda1011f97bb28d672c7198e9e12c90) Signed-off-by: Eike Rathke <er...@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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits