[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Nov 2 23:12:31 CET 2013
sc/source/ui/view/output2.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit de67c6d6159c0801b0959d77c2c8a8b7fb148b03
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat Nov 2 20:30:14 2013 +0100
no default LTR mode does not mean RTL, fdo#68097
Change-Id: Ice4957077e7eda5f7bb93042d6e2ba745935ef8b
(cherry picked from commit 045e037b7acde9d8e63fbb977c28b167e8815278)
Reviewed-on: https://gerrit.libreoffice.org/6527
Tested-by: Eike Rathke <erack at redhat.com>
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 8c64393..cf7be64 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1666,8 +1666,13 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
{
const SfxPoolItem* pItem = mpDoc->GetAttr( nCellX, nCellY, nTab, ATTR_WRITINGDIR );
const SvxFrameDirectionItem* pCurrentWritingMode = (const SvxFrameDirectionItem*) pItem;
- if (pCurrentWritingMode->GetValue() == FRMDIR_HORI_LEFT_TOP)
+ sal_uInt16 aDirection = pCurrentWritingMode->GetValue();
+ if ( aDirection == FRMDIR_HORI_LEFT_TOP || aDirection == FRMDIR_VERT_TOP_LEFT )
eOutHorJust = SVX_HOR_JUSTIFY_LEFT;
+ else if ( aDirection == FRMDIR_ENVIRONMENT )
+ {
+ eOutHorJust = mpDoc->IsLayoutRTL(nTab) ? SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT;
+ }
else
eOutHorJust = SVX_HOR_JUSTIFY_RIGHT;
}
More information about the Libreoffice-commits
mailing list