<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILESAVE DOCX: Rotated image is saved with wrong size/position"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123569#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - FILESAVE DOCX: Rotated image is saved with wrong size/position"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123569">bug 123569</a>
              from <span class="vcard"><a class="email" href="mailto:baron@caesar.elte.hu" title="Aron Budea <baron@caesar.elte.hu>"> <span class="fn">Aron Budea</span></a>
</span></b>
        <pre>It seems that the following line uses the size of the original image, not the
size of the resized image:
aSize = pGrfNode->GetTwipSize();
<a href="https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/docxattributeoutput.cxx?r=d55b26a0#4879">https://opengrok.libreoffice.org/xref/core/sw/source/filter/ww8/docxattributeoutput.cxx?r=d55b26a0#4879</a>

What complicates things is that the original rSize parameter in
DocxAttributeOutput::FlyFrameGraphic(...) is the frame's layout size, which is
the bounding rectangle of the resized+rotated image.

What seems to be needed is the size of the resized image, not sure where that
is stored/calculated (in ww8::Frame, maLayoutSize is the aforementioned layout
size, and maSize is the original size).</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>