Bug 54819 - EDITING: with "track changes" the paragraph following a deleted paragraph changes its style
Summary: EDITING: with "track changes" the paragraph following a deleted paragraph cha...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: 3.4.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
: 61239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-12 15:31 UTC by stfhell
Modified: 2014-12-24 08:59 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Sample document to illustrate formatting bug when deleting a paragraph (11.07 KB, application/vnd.oasis.opendocument.text)
2012-09-12 15:31 UTC, stfhell
Details

Description stfhell 2012-09-12 15:31:48 UTC
Created attachment 67055 [details]
Sample document to illustrate formatting bug when deleting a paragraph

Deleting a complete paragraph with "track changes" (redlining) enabled applies the paragraph style of the paragraph being deleted to the following paragraph.

Reproduce:

The attached document Redline_delete_paragraph.odt has a chapter heading and 2 text paragraphs.
Turn on "track changes" if it is turned off (and also enable "show changes", if necessary).
Delete the first paragraph with the chapter heading by marking the complete text line "Delete this paragraph including new-line and save file" _plus_ the following "character" (i.e. the new-line marker).
Either save the file or disable "show changes".
The text paragraph following the deleted paragraph is reformatted in the heading paragraph style of the deleted paragraph.


When you save the document as DOC, you can delete the entire first paragraph without having the following paragraph reformatted. (If you disable "show changes" for the DOC file, the bug shows again, however.)

The only way to retain the format of the document as it's supposed to be is
- either to delete only the text part of the paragraph - but then after accepting all tracked changes there remain all those empty paragraphs in the document;
- or to change the format of the paragraph to be deleted before deleting it (to the format that the following paragraph should have) - which is undesirable if you reject the tracked changes or want to view the deleted text properly.

I am reporting this bug for LO 3.4.4/Linux 64bit, but has been present in OpenOffice and LibreOffice for years.
Comment 1 A (Andy) 2012-12-27 20:05:03 UTC
reproducible with LO 3.6.4.3. (Win7 Home, 64bit)

But actually these are two cases with bugs.

Case 1: Select in the attached sample text with left mouse clicking beginning with the word "Delete" until the end of the first paragraph ending with the word "simultaneously", but do not stop and go on with the mouse into the next line before the word "Whether", but without selecting this following line or this word "Whether" (the cursor should blink before the "W" of the word "Whether").  Then delete the selected text and the deletion will be shown by the record changes function.  Now save this file and you will see that the following paragraph will be reformatted to Heading 1.  It is necessary to save this file.  If you would accept the changes before saving then the bug would not occur.  

Case 2: Select in the attached sample text with left mouse clicking beginning with the word "Delete" until the end of the first paragraph ending with the word "simultaneously", but now do not go to the next line, stop after the word "simultaneously" (the cursor should blink after the "y." of the word "simultaneously").  Then delete the selected text and the deletion will be shown by the record changes function.  For this case it does not matter whether you save the file or not.  Then accept the changes.  Afterwards, you will see an empty line before the new first paragraph which is also formatted as Heading 1.
Comment 2 Harald Koester 2013-08-16 08:40:40 UTC
*** Bug 61239 has been marked as a duplicate of this bug. ***
Comment 3 Harald Koester 2013-08-16 08:44:18 UTC
Reproduced with Version 4.0.1.4. and 3.5.3 on Win7. Hence Platform changed to "All".
Comment 4 Jürgen Sanne 2013-11-19 17:29:57 UTC
Reproducable with Version 4.1.2.3 and 4.1.3.2 on Win7

Remark to case 2:
This behaviour is independent of "track changes" (redlining) enabled or not.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.