<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - After pasting Excel table as EMF into right aligned paragraph, export to PDF is incorrect"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125986#c12">Comment # 12</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - After pasting Excel table as EMF into right aligned paragraph, export to PDF is incorrect"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=125986">bug 125986</a>
              from <span class="vcard"><a class="email" href="mailto:erez.wanderman@outlook.com" title="Erez Wanderman <erez.wanderman@outlook.com>"> <span class="fn">Erez Wanderman</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>