<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 - Cell anchored shape is always resized if copy&paste to a different sized range"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=139083">139083</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cell anchored shape is  always resized if copy&paste to a different sized range
          </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>Calc
          </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></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=168348" name="attach_168348" title="sheet with different row heights to test copy&paste of shape">attachment 168348</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=168348&action=edit" title="sheet with different row heights to test copy&paste of shape">[details]</a></span>
sheet with different row heights to test copy&paste of shape

Open attached document.
Make sure the shape in B2:B3 is anchored "To Cell" and not "To Cell (resize
with cell)".
Copy range B2:B3 including the shape.
Paste to B5.
Notice, that shape is resized to the smaller height of B5:B6.

Expected: Shape is anchored to B5 and keeps its size.

The error seems to be in ScDrawLayer::CopyFromClip. It assumes, that every cell
anchored object has to resize. That was true in OpenOffice (and the logic in
the method has not changed since that time), but is no longer true in
LibreOffice. OpenOffice had only two anchor types: "page" and "cell", where
"cell" included "resize". But LibreOffice has three anchor types "page", "cell
without resize" and "cell with resize" and therefor needs a new logic for
"resize" in copy&paste.</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>