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

            Bug ID: 155285
           Summary: Cell anchored callout loses position in save and
                    reload
           Product: LibreOffice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Keywords: implementationError
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 187250
  --> https://bugs.documentfoundation.org/attachment.cgi?id=187250&action=edit
Callout anchored to page

Load attached document. It has a callout shape in range D7:F9 with a tail tip
in B6. Currently the shape is anchored to page.

Change the anchor of the callout to 'To cell (resize with cell)'. You will see
the anchor in D7. Save and reload the document. Notice, that the callout is
moved so that the tip of the tail is now at the position where the rectangle
top/left corner has been before saving.

[The shape has the additional error, that the anchor type has changed to 'To
cell' because the anchor end address is not written to file. But that is a not
related export problem.]

The wrong position is produced on import in #1311 to #1321 in
ScDrawLayer::RecalcPos method in drwlayer.cxx.
https://opengrok.libreoffice.org/xref/core/sc/source/core/data/drwlayer.cxx?r=dfb0d118#1311

That part of the code is correct for AOO, because the object point to which the
anchor refers, is the topleft of the bounding box including the tail in AOO.
But in LibreOffice that has been changed so that the anchor now refers to the
rectangle part of the shape.

Unfortunately, the problem is not solved by simply removing the mentioned part.
At a first glance it looks correct on opening. But when you insert a row or
column, the tail is separated from the rectangle, because the tail is not
adjusted to the new position of the rectangle. The tip of the tail should still
point into the cell with content 'text', while the tail basis should be at the
rectangle.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to