Bug 147036 - Inconsistency deleting to character anchors in document with backspace/delete
Summary: Inconsistency deleting to character anchors in document with backspace/delete
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-28 10:18 UTC by Telesto
Modified: 2023-07-09 03:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file without second page & page break (11.17 KB, application/vnd.oasis.opendocument.text)
2022-01-28 10:18 UTC, Telesto
Details
Example file with second page and page break with out characters present (11.23 KB, application/vnd.oasis.opendocument.text)
2022-01-28 10:42 UTC, Telesto
Details
Example file with page break & with characters present (11.43 KB, application/vnd.oasis.opendocument.text)
2022-01-28 10:51 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-01-28 10:18:44 UTC
Description:
Inconsistency deleting to character anchors in document with backspace/delete

Steps to Reproduce:
1. Open the attached file
2. Go to the last paragraph in the document
3. Press backspace (OK)
4. Press backspace (dubious, image is anchored here, should backspace delete it or move it up)
5. Press backspace again.. image still present (anchor should be deleted ultimately..)

For comparison (which makes it more of a bug)
6. File reload
7. go the last paragraph.. 
8. Press backspace (OK)
9. Press delete (there is nothing visible to delete)
10. Press backspace (image deleted)

11. File reload
12. Place cursor at the top of the document
13. Press delete (to paragraph gone, fine)
14. Press delete again (next paragraph gone, fine)
15. Delete again (image deleted, which appears to be acceptable, even though you could argue it should be deleted at step 13

16. File reload
17. Place cursor at the top of the document
18. Press delete
19. Place cursor at to bottom paragraph 
20  Press backspace -> Image deleted.. I would expect it to stick around

Actual Results:
There is currently no logic easy to follow logic in the deletion of anchors with backspace/delete.. Its erratic from user point of view. It really depends in the order of doing things what happens.. 

Expected Results:
Harmony, consistency, predictability 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4a388f5e01ebb5a512931d11e48c4380382239c8
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: CL
Comment 1 Telesto 2022-01-28 10:18:57 UTC
Created attachment 177867 [details]
Example file without second page & page break
Comment 2 Telesto 2022-01-28 10:41:36 UTC
Step 1-5: Found in 7.0 not reproducible with 6.2.9 (if there is page break on the next page, not if there is no page break

Step 6-10: Found in 7.0 not in Version: 6.2.9.0.0+ (x86). Image deleted at step 8)

Step 11-15: Deleted at step 14 even in 3.5.7.2

Step 16-20. Found in 4.4.7.2 and in 3.5.7.2
Comment 3 Telesto 2022-01-28 10:42:22 UTC
Created attachment 177868 [details]
Example file with second page and page break with out characters present
Comment 4 Telesto 2022-01-28 10:51:31 UTC
Created attachment 177869 [details]
Example file with page break & with characters present
Comment 5 Dieter 2022-02-12 04:37:42 UTC
(In reply to Telesto from comment #0)
> 4. Press backspace (dubious, image is anchored here, should backspace delete
> it or move it up)

Image is deleted.

Tested with

Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 Buovjaga 2022-12-09 13:55:34 UTC
(In reply to Telesto from comment #0)
> Description:
> Inconsistency deleting to character anchors in document with backspace/delete
> 
> Steps to Reproduce:
> 1. Open the attached file
> 2. Go to the last paragraph in the document
> 3. Press backspace (OK)
> 4. Press backspace (dubious, image is anchored here, should backspace delete
> it or move it up)
> 5. Press backspace again.. image still present (anchor should be deleted
> ultimately..)

I tested with attachment 177867 [details] only.

The shape became impossible to remove via backspace in 7.4 with:
https://git.libreoffice.org/core/commit/85376a02348810812d515ee72140dbf56f2b6040
tdf#133957 sw: don't delete flys on Backspace/Delete keys

I don't really understand, how you could see the behaviour in January 2022 when the commit was made in June 2022.

The change in version 7.0 was that earlier the shape was already deleted in step 3. After the change in 7.0, the shape got deleted in step 4 (so I don't know how you could see step 5).

Steps 6-20 are no longer true.

Telesto: this report seems obsolete, do you agree?
Comment 7 QA Administrators 2023-06-08 03:15:40 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2023-07-09 03:16:33 UTC
Dear Telesto,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp