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@lists.freedesktop.org
Reporter: rb.hensc...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs