Bug 146793 - Inconsistency when deleting first paragraph
Summary: Inconsistency when deleting first paragraph
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks: Paragraph
  Show dependency treegraph
 
Reported: 2022-01-16 13:07 UTC by Dieter
Modified: 2025-12-17 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test file (9.43 KB, application/vnd.oasis.opendocument.text)
2022-01-16 13:07 UTC, Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dieter 2022-01-16 13:07:50 UTC
Created attachment 177573 [details]
test file

Steps to reproduce:

1. Open attachment. It contains two paragraphs. First paragraph has PS „Heading 3“, CS „Endnote Characters“ and Character DF „Underline“ (see Style inspector). Second paragraph has PS „Subtitle“, CS „Variable“ and Character DF „Bold“ (see Style Inspector).

Test 1:
2. Place cursor at beginning of second paragraph and press backspace and delete first paragraph
3. Result: First paragraph has PS „Subtitle“ (expected), CS „Endnote Character“ (not expected) and character direct formatting „Bold“ (expected) and „Underline“ (not expected)

Test 2:
4. Reload document
5. Place cursor at the end of second paragraph and presse backspace until you deleted everything
6. Result: First paragraph has PS „Heading 3“ (not expected), CS „Variable“ (expected) and character direct formatting „Bold“ (expected)

Test 3:
7. Reload document
8. Select all (Strg+A) and press backspace
9. Result: Same result as in test 2


Actual results
- inconstistent behaviour, depending on whether second paragraph is empty or not
- Styles and formatting from first and second paragraph are miexed in every case

Expected result:
Expectation for test 1 and 2: Styles and formatting of first paragraph should persist
Expectation for test 3: Not really sure, but I would think document should look lik a new document (so default PS or a certain PS if it is based on a template). But i would neglect test 3 here. Perhaps it shpould be discussed in a different report.
Comment 1 Dieter 2022-01-16 13:16:28 UTC
Tested with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 151c56ed547490a99d912524c0e56b5d6d4a1939
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

and with

Version: 5.4.7.2 (x64)
Build-ID: c838ef25c16710f8838b1faec480ebba495259d0
CPU-Threads: 4; BS: Windows 6.19; UI-Render: GL; 
Gebietsschema: de-DE (de_DE); Calc: CL
Comment 2 Buovjaga 2022-12-07 12:45:23 UTC
I reproduce. Might be good to ask developers about this, though.

Arch Linux 64-bit
Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: c2bcbd36d1913dc1d5ca4bb64fa30740f17bf326
CPU threads: 8; OS: Linux 6.0; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 7 December 2022
Comment 3 Dieter 2023-12-17 17:17:54 UTC
(In reply to Buovjaga from comment #2)
> I reproduce. Might be good to ask developers about this, though.

So I think we can set status to NEW and question to developers is about a good solution?
Comment 4 QA Administrators 2025-12-17 03:12:23 UTC
Dear Dieter,

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