Download it now!
Bug 71500 - EDITING: Table of Contents is Deleted Unintentionally
Summary: EDITING: Table of Contents is Deleted Unintentionally
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
Whiteboard: BSA
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
Reported: 2013-11-11 15:23 UTC by Harald Koester
Modified: 2021-01-15 09:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2013-11-11 15:23:37 UTC
Problem description: 

Steps to reproduce:
[1] Open a new text document.
[2] Disable option “LibreOffice Writer → Formatting Aids → Cursor in protected areas“.
[3] Type in a word, then Enter.
[4] Insert a heading.
[5] Insert a protected (against manual changes) table of contents between the 2 paragraphs.
[6] Delete word in paragraph above table. 
[7] Delete empty paragraph in first line with “Del“. The empty paragraph and the table of contents is deleted. Expected: Only paragraph should be deleted.

Hint: I assume that the behaviour is equal with other indexes or tables which can be protected against manual changes, but I did not check it.

Operating System: Windows 7
Version: release
Comment 1 sophie 2013-11-12 10:58:41 UTC
Confirmed, the index is deleted. Version:
Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a. Set as New, change plateform to all - Sophie
Comment 2 QA Administrators 2015-04-19 03:22:21 UTC Comment hidden (obsolete)
Comment 3 Geoffrey 2015-04-19 08:10:40 UTC
Actually, it's easy to understand :) Tested using LibreOffice 4.4.1.

You can remove the empty line between the word and the table of contents with del (on the line of the word).
You can remove the empty line with backspace (on the empty line)

You cannot remove the empty line with del on the empty line. If you do that, the table of contents is removed too.
Comment 4 QA Administrators 2016-09-20 09:24:51 UTC Comment hidden (obsolete)
Comment 5 Harald Koester 2018-01-06 22:13:13 UTC Comment hidden (obsolete)
Comment 6 Harald Koester 2018-01-06 22:14:38 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2019-01-07 03:41:27 UTC Comment hidden (obsolete)
Comment 8 Harald Koester 2019-01-08 13:02:54 UTC
Bug still exists in version 6.1.4. (64 bit, Win 10)
Comment 9 QA Administrators 2021-01-08 04:19:54 UTC Comment hidden (obsolete)
Comment 10 Timur 2021-01-08 08:14:48 UTC Comment hidden (obsolete)
Comment 11 Heiko Tietze 2021-01-15 09:04:34 UTC
(In reply to Timur from comment #10)
> i add UX because of comment 3 to see if this is bug or not.

Yes, bug. If you delete the paragraph before the ToC, whether it contains a word or is empty, deletes the ToC when the cursor cannot be in protected areas. The expectation is clearly to keep the ToC and put the cursor after it.