Created attachment 168348 [details] 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.
Confirmed Version: 7.2.0.0.alpha0+ (x64) Build ID: e97a81e94511b52987a50b7bdb72c922899da588 CPU threads: 4; OS: Windows 10.0 Build 20180; UI render: Skia/Vulkan; VCL: win Locale: es-ES (es_ES); UI: es-ES Calc: CL
Dear Regina Henschel, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The problem still exists in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 23bd3bd10e74b0c23c2654d02d7d830e7693adac CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: de-DE (en_US); UI: en-US Calc: CL threaded
Started, see https://gerrit.libreoffice.org/c/core/+/150161
Created attachment 186623 [details] document for testing Unfortunately it is more complicate than I have thought. Open attached document. The left red shape is anchored "To page", the center blue shape is anchored "To cell" and the right green shape is anchored "To cell (resize with cell). Copy the yellow cells to clipboard and then go to the other sheets and paste it somewhere there. You can see, that the red and green shape do not keep size. And that the green and blue shape are at wrong position. It is questionable whether a shape anchored to page should be copied at all, but shapes anchored to cell should be positioned to the target cell similar as they were positioned in the source cell and only a shape anchored "To cell (resize with cell)" may resize at all.
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dfb0d118f6b23730bc632885eb4703a37eeaec16 tdf#139083 Only resize if 'resize with cell' is set It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Further unit tests will be in follow up commits
Verified with 7.6 Good in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 4f93995f2262cde0b16bacc83f4ba3c6161ada7f CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Bad in Version: 7.5.3.2 (X86_64) / LibreOffice Community Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3 CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Regina Henschel committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/43f72183ce12835f6a3a5185e708a00e968d27da tdf#139083 Further unit tests for commit dfb0d118 It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.