<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Setting width of rotated custom shape results in wrong rotation angle"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=138945">138945</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Setting width of rotated custom shape results in wrong rotation angle
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>Inherited From OOo
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Draw
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rb.henschel@t-online.de
</td>
</tr>
<tr>
<th>Blocks</th>
<td>137033
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=168196" name="attach_168196" title="file with custom shape (blue) and legacy rectangle (red)">attachment 168196</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=168196&action=edit" title="file with custom shape (blue) and legacy rectangle (red)">[details]</a></span>
file with custom shape (blue) and legacy rectangle (red)
Open attached document. It contains a custom shape (blue fill) and legacy
rectangle (red). Both were original at position (45mm|40mm) and have size 70mm
x 40mm. The they got a shear with 45° shear angle and after that a rotation
with 330° rotation angle in dialog "Position&Size".
Mark the custom shape. Open "Position&Size" dialog. Make sure "Keep ratio" is
not checked. Set width of the object to 200mm with base point left/top.
Mark the legacy rectangle and do the same.
Notice, the legacy rectangle is correctly stretched in horizontal direction.
The custom shape is stretched too, but has got a wrong rotation.
If you mark the custom shape, you will notice, that its handles do not match
the outline of the shape. It is not a pur rendering problem, the wrong shape
geometry is saved to file.
I suspect, that the error is, that the member fObjectRotation is not updated to
the changed rotation angle in SdrObjCustomShape::NbcResize.
The error is very old, but I have not found a bug report. It might have not
been detected yet, because drag-resize at the corner of a custom shape always
uses "keep ratio". So it can only be reproduced in the UI, when using the
dialog.
This bug prevents fixing <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE Shape anchored to "cell with resize" has wrong end offset if its area contains a hidden row"
href="show_bug.cgi?id=137033">bug 137033</a>.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE Shape anchored to "cell with resize" has wrong end offset if its area contains a hidden row"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=137033">Bug 137033</a>] FILESAVE Shape anchored to "cell with resize" has wrong end offset if its area contains a hidden row
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>