Description: If I paste an image (in a form it may be a signature gif or jpg) in a protected sheet, and I want to resize it, I cannot find a way to select the image. A suggestion on the internet help says to doubleclick the image in the Sidebar Navigator - but that is protected as well. Steps to Reproduce: 1.open protect WB 2.select an unprotected cell 3.edit/insert image 4.try to select the image to resize it Actual Results: Cannot select the image Expected Results: It is difficult, even in an unprotected sheet. Maybe there should be a context menu item when in the cell where it is anchored; or an option in Edit/Select; or the Navigator should have the image unprotected (so doubleclick works) All three should be allowed abut at least the first two. Reproducible: Always User Profile Reset: No Additional Info: [Information automatically included from LibreOffice] Locale: en-GB Module: SpreadsheetDocument [Information guessed from browser] OS: Linux (All) OS is 64bit: yes
Created attachment 174769 [details] example with inserted image in protected sheet
Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: d5ade739771ddf06cc7ee6d4af15672bfcf09ed6 CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.UTF-8); UI: en-GB TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-09-01_02:56:07 Calc: threaded NOTE: Same occurs in Calc v6.4 Workaround: remove the protection in xml if possible make a tiny image to insert
Created attachment 174809 [details] example ODS I think this is a bug, if image is in unprotected cell. Attached was XLSX but regardless, same happens with ODS, that I attach now.
*** Bug 150109 has been marked as a duplicate of this bug. ***
Inserting images to unprotected cells in protected sheets was implemented in 26030f92629b310e66b2335c2cec0413bb7ec828 as part of bug 97357. I checked the commit and selecting the image was not possible even then, so this has always been the case.
It definitely is an "implementationError", but completely unrelated to the fix of bug 97357. The important thing is that it is impossible to select a to-cell-anchored image, when its anchor cell is unprotected. This could be arranged in any previous version as well, including OOo 2.4.3: just insert the image to a cell, while the sheet is not yet protected. Then, after protect, it's impossible to select (and otherwise interact with) the image. The said fix may possibly serve as a rough code pointer.