Kaydet (Commit) aebc79b6 authored tarafından Justin Luth's avatar Justin Luth

tdf#116404 RTF: check locale if BiDi inherits Environment

RTF is a bit simplistic compared to the others, but at least
we can handle the Environment situation similarly.

Change-Id: I87bc389373275d19f1229e11ffd742836a0fd498
Reviewed-on: https://gerrit.libreoffice.org/66966
Tested-by: Jenkins
Reviewed-by: 's avatarJustin Luth <justin_luth@sil.org>
üst b3394345
......@@ -3490,7 +3490,11 @@ void RtfAttributeOutput::FormatFrameDirection(const SvxFrameDirectionItem& rDire
{
if (!m_rExport.m_bOutPageDescs)
{
if (rDirection.GetValue() == SvxFrameDirection::Horizontal_RL_TB)
SvxFrameDirection nDir = rDirection.GetValue();
if (nDir == SvxFrameDirection::Environment)
nDir = GetExport().GetDefaultFrameDirection();
if (nDir == SvxFrameDirection::Horizontal_RL_TB)
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_RTLPAR);
else
m_aStyles.append(OOO_STRING_SVTOOLS_RTF_LTRPAR);
......
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