Bug 136773 - The table of contents deletes the end of the document
Summary: The table of contents deletes the end of the document
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2020-09-15 13:52 UTC by Myosotis Arae
Modified: 2024-12-18 19:49 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
User manuel for my site (332.01 KB, application/vnd.oasis.opendocument.text)
2020-09-15 13:56 UTC, Myosotis Arae
Details
video (3.83 MB, video/mp4)
2020-09-15 15:47 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myosotis Arae 2020-09-15 13:52:36 UTC
Description:
My document has 6 pages (pdf version here : https://renardenjoue.araetech.eu/infos)
When I insert a table of content, just before the first title (style Title 1), the pages 3 to 6 vanish.

Steps to Reproduce:
1.Put the cursor on the line just after the image
2.Insert Table of contents

Actual Results:
Table of contents inserted.
The rest of the document remains the same.

Expected Results:
All the document disappeared except pages 1 & 2.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Should not delete anything in the document
Comment 1 Myosotis Arae 2020-09-15 13:56:42 UTC
Created attachment 165535 [details]
User manuel for my site

I tried to insert the table of contents on the line between the image and the title "Présentation générale".
But each time, it deletes 4 pages on 6.
Comment 2 BogdanB 2020-09-15 15:47:30 UTC
Created attachment 165540 [details]
video
Comment 3 BogdanB 2020-09-15 15:48:48 UTC
You have write:
"Expected Results: All the document disappeared except pages 1 & 2."

This is what you expect? Everything to dissapear?... Or is the reverse?...

Please see my video.

It's ok like in my video?
Comment 4 Myosotis Arae 2020-09-16 05:51:29 UTC
No, of course, I don't want the pages to disappear. I wrote it in the wrong field.
I didn't see your video, where is it ?
Comment 5 BogdanB 2020-09-16 05:54:09 UTC
See comment 2 - click on attachement - save as and download on your computer and play.
Comment 6 Myosotis Arae 2020-09-16 06:06:19 UTC
Ok, I see.
Indeed, it works if you put the table of contents before the image. I tried it too.
But if you put it just one line below, the problem happens.
Comment 7 BogdanB 2020-09-16 06:08:38 UTC
My cursor is AFTER the image when I inserted TOC.
Comment 8 Myosotis Arae 2020-09-16 06:11:11 UTC
Seems that the text, when inserted in the same "space" as the image, is automatically moves before this image.
But nevermind, this workaround is fine for me. I'll move the image.
Thank you very much !
Comment 9 BogdanB 2020-09-16 06:14:02 UTC
Maybe it's a thing of anchoring the image different.
You can test to anchor to page/paragraph/to character/as character and see what result you get.
Comment 10 Myosotis Arae 2020-09-16 06:18:22 UTC
Yes, I can try this.

Nevertheless, it's really weird that simply adding a TOC erases most of the document.
Comment 11 BogdanB 2020-09-16 06:31:34 UTC
I dind't lost anything.
But you should have nothing selected before inserting a TOC.
Comment 12 Telesto 2020-09-16 06:39:39 UTC
I don't reproduce this with, maybe 6.4 branch only?
Version: 7.0.0.2
Build ID: c01aa64b6c3d89ebe5fe69c28c7adb24eb85249c
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 13 BogdanB 2020-09-16 06:42:25 UTC
I tried on my Windows,
after I inserted the TOC, I moved the image with drag & drop where I needed. 

Very easy.

No text deleted.
Comment 14 BogdanB 2020-09-16 06:42:39 UTC
Tested with
Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded
Comment 15 Myosotis Arae 2020-09-16 06:49:42 UTC
I didn't. Really !
Try it : put the TOC just one line lower than you did.
Comment 16 BogdanB 2020-09-16 07:05:21 UTC
Confirm this.

Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded

The cursor should be on a second line from the image and the content is gone.
Comment 17 BogdanB 2020-09-16 07:12:17 UTC
The cursor should be one row down that in the video from comment 2. After that line.
Comment 18 BogdanB 2021-12-15 18:58:42 UTC
Repro also in
Version: 7.3.0.0.beta1+ / LibreOffice Community
Build ID: ecfb83d7463bed7c89baeccc03286c1ac9956d70
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 19 QA Administrators 2023-12-16 03:13:06 UTC Comment hidden (obsolete)
Comment 20 muumio 2024-12-18 16:13:19 UTC
I can't reproduce this.

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 537645c0834eab2d277113f1e3fcf039c994832d
CPU threads: 8; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: CL threaded
Comment 21 BogdanB 2024-12-18 19:49:29 UTC
Indeed, the problem seems solved.
Myosotis, you can see by yourself that the problem is gone now.

Tested with
Version: 24.8.3.2 (X86_64) / LibreOffice Community
Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded


On the same computer I tested on the same document, with an older version, and I reproduced it with 7.3. so indeed it is fixed by the new versions.
Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: ro-RO
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.7
Calc: threaded