Created attachment 191262 [details] sample ODS If an object is anchored "to cell (resize with cell)" and then "fit to cell size", then copied and pasted after a cell resize, the size of the target cell is not respected. Steps: 1. Open sample document (or fill a cell with an object as described above) 2. Resize the column: object resizes with it, which is good. 3. Copy cell with object (cell A1 or A5 in sample doc) 4. Paste it to other cell Result: the object does not fit the target cell size. Bibisected with linux-64-7.6 repository to first bad build commit [e488e9509e327eaf3001ad12d76fd64698593f25] which points to: commit dfb0d118f6b23730bc632885eb4703a37eeaec16 author Regina Henschel Sat Apr 08 18:38:04 2023 +0200 committer Regina Henschel Sun May 07 10:57:04 2023 +0200 tdf#139083 Only resize if 'resize with cell' is set Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150161 Regina, can you please have a look?
My first try in https://gerrit.libreoffice.org/c/core/+/160415 doesn't work. The attempt shows, that the anchor info in the shape is not suitable for copy&paste. But changing it in recalcPos() method has the effect, that wrong values are written to file and the shape will be changed after save and reload in some cases. That happens in the broken unit test. Likely it has to be fixed, when copying the shape to clipboard. Unfortunately I have currently no time for further investigation. Does there exist something like 'remind me in one month'?
(In reply to Regina Henschel from comment #1) > My first try in https://gerrit.libreoffice.org/c/core/+/160415 doesn't work. > The attempt shows, that the anchor info in the shape is not suitable for > copy&paste. But changing it in recalcPos() method has the effect, that wrong > values are written to file and the shape will be changed after save and > reload in some cases. That happens in the broken unit test. > > Likely it has to be fixed, when copying the shape to clipboard. > Unfortunately I have currently no time for further investigation. Does there > exist something like 'remind me in one month'? Thanks for having a look, Regina! There's the "Personal Tags" field in the bug report that might be useful to create your personal bug lists (no notification is sent to anyone when changing this field).