Bug 119132 - Contents updating
Summary: Contents updating
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2018-08-06 19:58 UTC by David Liška
Modified: 2018-08-15 14:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Description with instructions how simulate the bug. (12.57 KB, application/vnd.oasis.opendocument.text)
2018-08-07 09:26 UTC, David Liška
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Liška 2018-08-06 19:58:34 UTC
Description:
Wrong contents updating 

Steps to Reproduce:
1.Open Write document with existing contents
2.Change style of existing title text to non-title style
3.Update contents (title text is missing - OK)
4.Change back non-title style of text to title style (same as after document loaded)
5. Update contents - title text is missing

Actual Results:
Contents has updated wrong

Expected Results:
Re-updated style of title text has to be in contents list


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Comment 1 Xisco Faulí 2018-08-06 21:22:54 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
Comment 2 David Liška 2018-08-07 09:26:50 UTC
Created attachment 144009 [details]
Description with instructions how simulate the bug.

Description with instructions how simulate the bug.
Comment 3 Xisco Faulí 2018-08-08 09:04:32 UTC
I can reproduce it in

Version: 6.2.0.0.alpha0+
Build ID: c86a47a9d3debbc7e8ee6247f573e7f98c611f19
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded

and back to https://cgit.freedesktop.org/libreoffice/core/commit/?id=b733d208b02facaaad8c4925277b34b9f7fd928f. Before that, the Prolog wasn't removed from the TOC when it was changed to tempus_text

it seems, all the new headings added before 'Setkání' are not added to the TOC, but they are if they are after it...

btw, I'm trying to reproduce the issue from scratch with a new document importing the styles and the TOC is empty...
How did you create it ?
Comment 4 Timur 2018-08-10 14:25:20 UTC
(In reply to David Liška from comment #0)
> 4.Change back non-title style of text to title style (same as after document
"tempus_nadpis" is not title style, it's Outline level is Text Body
> 5. Update contents - title text is missing
Makes sense, because it's not Outline. 

What I don't see is why Prolog is in ToC in the first place. 
But given we don't know how this was created, I would close this one as NotABug.
Unless you consider there is a bug here.
Comment 5 Xisco Faulí 2018-08-15 14:21:56 UTC
> What I don't see is why Prolog is in ToC in the first place. 

Hello  David Liška,
Could you please explain how the ToC was created?
Comment 6 Timur 2018-08-15 14:51:00 UTC
Oh, simple: Prolog was directly formatted as Outline. 
What a mess and Not a bug.