- Create a new document in Writer - Insert a watermark via the "Format-Watermark" menu item - Double-click into the header - Insert a field into the header via the "Insert-Field" menu item (I chose 'Date') - Click on the field so it is selected - Press 'Delete' - The field is removed, but the watermark is also deleted NB: This doesn't happen if there is other text in the header NB: This also happens if you insert a different item (rather than a watermark) such as a TextBox into the header, i.e. - Create a new document in Writer - Double-click into the header - Insert a TextBox into the header via the "Insert-TextBox" menu item and add some text to the TextBox - Insert a field into the header via the "Insert-Field" menu item (I chose 'Date') - Click on the field so it is selected - Press 'Delete' - The field is removed, and the TextBox is also deleted
Confirm with Version: 7.1.0.0.alpha0+ Build ID: f21f3d094cfb495c89dfb0a23ecb061ef1a2178e CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Also in Version: 6.3.3.2 Build ID: a64200df03143b798afd1ec74a12ab50359878ed CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded Also in Version: 6.3.1.2 Build ID: b79626edf0065ac373bd1df5c28bd630b4424273 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded DONT REPRO in Version: 5.4.7.2 Build ID: c838ef25c16710f8838b1faec480ebba495259d0 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk2; Locale: ro-RO (ro_RO.UTF-8); Calc: group
Bogdan, please find exact regression version, 5.4 to 6.3 is too broad,, and write if you can do bibisect and attach sample document with minimal steps for easier bibisect.
Created attachment 166512 [details] document for testing Steps: - Open the file - Click on the time field in the header and press DELETE - Watermark should NOT be removed.
NOT ok in Version: 6.3.1.2 Build ID: b79626edf0065ac373bd1df5c28bd630b4424273 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded -------------------------------- Ok in Version: 6.2.8.2 Build ID: f82ddfca21ebc1e222a662a32b25c0c9d20169ee CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded Ok in Version: 6.1.6.3 Build ID: 5896ab1714085361c45cf540f76f60673dd96a72 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk2; Locale: ro-RO (ro_RO.UTF-8); Calc: group threaded Ok in Version: 6.0.7.3 Build ID: dc89aa7a9eabfd848af146d5086077aeed2ae4a5 CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk2; Locale: ro-RO (ro_RO.UTF-8); Calc: group
Bibisected using linux-64-6.4 to: URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=28b77c89dfcafae82cf2a6d85731b643ff9290e5 author: Michael Stahl <Michael.Stahl@cib.de> committer: Michael Stahl <Michael.Stahl@cib.de> summary: tdf#117185 tdf#110442 sw: bring harmony & peace to fly at-char selection Adding CC: Michael Stahl
this is similar to bug 133957, but with at-char anchor type
Also in Version: 7.2.4.1 / LibreOffice Community Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9 CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
the scenario in the description still removes the image, but with the fix for bug 133957 if you don't create a selection but use the keyboard backspace/delete to delete the field then the image will not be deleted. if you explicitly select then anchored objects will be deleted, otherwise not; you can already see this in the UI because the selected anchored object gets highlighted. unfortunately drawing objects don't get highlighted, only Writer's own text frames, images, and embedded objects - this should be improved, i've found bug 141210 about this. this exact scenario in the attachment also seems difficult to change because in the attachment the field is the only content in the header, so selecting it is indistinguishable from a CTRL+A selection, which definitely should delete everything anchored in the header. so i don't think i want to fix anything here, of course it behaves different than before but it's not clear to me that it's behaving wrongly.