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)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Keywords: needsDevAdvice
Depends on:
Blocks: Paragraph
  Show dependency treegraph
Reported: 2022-01-16 13:07 UTC by Dieter
Modified: 2023-12-17 17:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

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

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: (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: (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: (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?