summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-02 20:30:14 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-02 20:32:19 +0100
commit045e037b7acde9d8e63fbb977c28b167e8815278 (patch)
tree5aecd604bbd2941eff97f41f1e0536aef3aad6ad
parent5c18b9dfe4319bc27aa245c58d4f0dfc6cb689ef (diff)
no default LTR mode does not mean RTL, fdo#68097
Change-Id: Ice4957077e7eda5f7bb93042d6e2ba745935ef8b
-rw-r--r--sc/source/ui/view/output2.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 63e0fad619a5..cf0a8295818e 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;
}