[Libreoffice-bugs] [Bug 139083] New: Cell anchored shape is always resized if copy&paste to a different sized range
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Dec 19 23:58:50 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=139083
Bug ID: 139083
Summary: Cell anchored shape is always resized if copy&paste
to a different sized range
Product: LibreOffice
Version: Inherited From OOo
Hardware: x86-64 (AMD64)
OS: Windows (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 168348
--> https://bugs.documentfoundation.org/attachment.cgi?id=168348&action=edit
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.
--
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/20201219/29e60eb4/attachment.htm>
More information about the Libreoffice-bugs
mailing list