Kaydet (Commit) 036b1fcc authored tarafından Hannah Lyhne's avatar Hannah Lyhne Kaydeden (comit) Kohei Yoshida

fdo#73588: fix default alignment in RTL mode.

Change-Id: Icb932ee51dbf32d8baf4382aa00e89a680f5a41d
üst 364c989e
...@@ -1434,7 +1434,10 @@ static SvxCellHorJustify getAlignmentFromContext( SvxCellHorJustify eInHorJust, ...@@ -1434,7 +1434,10 @@ static SvxCellHorJustify getAlignmentFromContext( SvxCellHorJustify eInHorJust,
else if (nDirection == FRMDIR_ENVIRONMENT) else if (nDirection == FRMDIR_ENVIRONMENT)
{ {
SAL_WARN_IF( !pDoc, "sc.ui", "getAlignmentFromContext - pDoc==NULL"); SAL_WARN_IF( !pDoc, "sc.ui", "getAlignmentFromContext - pDoc==NULL");
eHorJustContext = (pDoc && pDoc->IsLayoutRTL(nTab)) ? SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT; // fdo#73588: The content of the cell must also
// begin with a RTL character to be right
// aligned; otherwise, it should be left aligned.
eHorJustContext = (pDoc && pDoc->IsLayoutRTL(nTab) && (beginsWithRTLCharacter( rText))) ? SVX_HOR_JUSTIFY_RIGHT : SVX_HOR_JUSTIFY_LEFT;
} }
else else
eHorJustContext = SVX_HOR_JUSTIFY_RIGHT; eHorJustContext = 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