<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 - 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">137033</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FILESAVE Shape anchored to "cell with resize" has wrong end offset if its area contains a hidden row
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.1.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>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=165853" name="attach_165853" title="File for reproducing the bug">attachment 165853</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=165853&action=edit" title="File for reproducing the bug">[details]</a></span>
File for reproducing the bug

Open attached file. It has three shapes. All of them are anchored as "To cell
(resize with cell)".
The blue shape is the "original" rectangle. The green shape was created from it
by slant with 45° and to get the olive shape this was then rotated by 60°.

Hide row 7. The shapes adapt as expected. Save the file using File > Save a
copy. Keep the current file open.
Now open the saved file and compare it with the already open file. You will
notice the distortion immediately.

If a shape is anchored as "To cell (resize with cell)", then position and size
is given in the file by start and end cell and offsets relative to the left top
corner of start and end cell. If a shape gets a transformation, LibreOffice
starts with a rectangle, that has the cell corner as left/top corner, and
LibreOffice integrates the needed shift into the final translation.

>From the values in the file I guess, that it was forgotten to subtract the
start offset values from the end offset, when instead the start offset the
values 0|0 are used. So the initial rectangle is too wide and too high.

The blue rectangle is not transformed and has a different error, I guess for
that shape the import is wrong. I have only kept it in the example file, that
you can reproduce, how the green and olive shapes were generated.</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>