[Libreoffice-bugs] [Bug 125986] After pasting Excel table as EMF into right aligned paragraph, export to PDF is incorrect

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 21 19:34:50 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=125986

--- Comment #12 from Erez Wanderman <erez.wanderman at outlook.com> ---
Found the following: this code is in sw\source\core\text\inftxt.cxx:
    // Set default layout mode ( LTR or RTL ).
    if ( m_pFrame->IsRightToLeft() )
    {
        m_pOut->SetLayoutMode( ComplexTextLayoutFlags::BiDiStrong |
ComplexTextLayoutFlags::BiDiRtl );
        m_pRef->SetLayoutMode( ComplexTextLayoutFlags::BiDiStrong |
ComplexTextLayoutFlags::BiDiRtl );
        m_nDirection = DIR_RIGHT2LEFT;
    }
    else
    {
        m_pOut->SetLayoutMode( ComplexTextLayoutFlags::BiDiStrong );
        m_pRef->SetLayoutMode( ComplexTextLayoutFlags::BiDiStrong );
        m_nDirection = DIR_LEFT2RIGHT;
    }

If I comment the "if" part and keep only the else, then in the exported PDF,
the metafile is OK. However, this breaks other scenarios in the main display
and in exported PDF. (is the export to PDF using different rendering logic?)

I hope someone can find a proper fix for this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200421/ac30920b/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list