[Libreoffice-bugs] [Bug 137033] New: FILESAVE Shape anchored to "cell with resize" has wrong end offset if its area contains a hidden row

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 25 21:29:44 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=137033

            Bug ID: 137033
           Summary: FILESAVE Shape anchored to "cell with resize" has
                    wrong end offset if its area contains a hidden row
           Product: LibreOffice
           Version: 7.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: rb.henschel at t-online.de

Created attachment 165853
  --> https://bugs.documentfoundation.org/attachment.cgi?id=165853&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200925/b9b2781b/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list