[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Nov 2 19:34:25 CET 2013
sc/source/ui/view/output2.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 045e037b7acde9d8e63fbb977c28b167e8815278
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
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 63e0fad..cf0a829 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -1690,8 +1690,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