<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
<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>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>rb.henschel@t-online.de
</td>
</tr></table>
<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#c8">Comment # 8</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:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=173258" name="attach_173258" title="proposed patch">attachment 173258</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=173258&action=edit" title="proposed patch">[details]</a></span>
proposed patch
@Aron Budea: I think, it is not a size but a position problem.
When it comes to DocxSdrExport::startDMLAnchorInline(), the parameter rSize has
the unrotated size of the image, as it is needed in Word. But in contrast to
other objects, line#683
awt::Point aPos(pFrameFormat->GetHoriOrient().GetPos(),
pFrameFormat->GetVertOrient().GetPos());
gives the position of the unrotated image. So it is not needed to create the
unrotated position back from the rotated position, which is done in
lclMovePositionWithRotation().
I put my proposed patch as attachment here, because I will not have time enough
in the next days to work out a proper patch (testing with other objects than
Writer-images and testing the other documents in the bug reports and creating
unit tests). It might be that instead of adding the case in
lcl_IsRotateAngleValid() it is necessary to add the exclusion directly in
if (pObj && lcl_IsRotateAngleValid(*pObj))
in line#688.</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>