Kaydet (Commit) 045e037b authored tarafından Markus Mohrhard's avatar Markus Mohrhard

no default LTR mode does not mean RTL, fdo#68097

Change-Id: Ice4957077e7eda5f7bb93042d6e2ba745935ef8b
üst 5c18b9df
...@@ -1690,8 +1690,13 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic ) ...@@ -1690,8 +1690,13 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
{ {
const SfxPoolItem* pItem = mpDoc->GetAttr( nCellX, nCellY, nTab, ATTR_WRITINGDIR ); const SfxPoolItem* pItem = mpDoc->GetAttr( nCellX, nCellY, nTab, ATTR_WRITINGDIR );
const SvxFrameDirectionItem* pCurrentWritingMode = (const SvxFrameDirectionItem*) pItem; 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; eOutHorJust = SVX_HOR_JUSTIFY_LEFT;
else if ( aDirection == FRMDIR_ENVIRONMENT )
{
eOutHorJust = mpDoc->IsLayoutRTL(nTab) ? SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT;
}
else else
eOutHorJust = SVX_HOR_JUSTIFY_RIGHT; eOutHorJust = SVX_HOR_JUSTIFY_RIGHT;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment