Bug 157802 - Extra heading number when recording changes and copying headings
Summary: Extra heading number when recording changes and copying headings
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-17 09:07 UTC by Ulrich Windl
Modified: 2024-02-02 10:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Appearance after having accepted all changes (1.62 KB, image/png)
2023-10-17 09:07 UTC, Ulrich Windl
Details
Appearance after having clicked on the new number (1.11 KB, image/png)
2023-10-17 09:07 UTC, Ulrich Windl
Details
Sample document (24.28 KB, application/vnd.oasis.opendocument.text)
2024-02-02 10:49 UTC, Ulrich Windl
Details
Document before change (6.23 KB, image/jpeg)
2024-02-02 10:49 UTC, Ulrich Windl
Details
Document after change (6.87 KB, image/jpeg)
2024-02-02 10:50 UTC, Ulrich Windl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2023-10-17 09:07:09 UTC
Created attachment 190251 [details]
Appearance after having accepted all changes

Version: 7.5.3.2 (x86) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

(It seems this effect is new, but I'm not 100% sure)
When recording (and displaying) changes, I copied some text with numbered heading at the end of the text (as the structure would be similar).
I noticed that the headings had two numbers now: The new one, and (I guess) the old one in square brackets ([..]).
So far, so good, but even after I had accepted all pending changes, the headings still had that double number, and the numbers were in blue instead of black.
Then I noticed as soon as I clicked _one_ of the new numbers in a heading, all that numbers in square brackets had vanished.
My expectation is that those should have vanished after having accepted all changes already.
I'll attach mini screenshots for illustration.
Comment 1 Ulrich Windl 2023-10-17 09:07:59 UTC
Created attachment 190252 [details]
Appearance after having clicked on the new number
Comment 2 Ulrich Windl 2023-10-17 09:15:29 UTC
> I copied some text with numbered heading at the end of the text (as the structure would be similar).

In case it's not clear what I meant: I copied some text from the middle of the document to the end of the document, where further editing happened.
Comment 3 Ulrich Windl 2023-10-17 09:22:30 UTC
Another note: As the copying happened several weeks ago, I cannot exactly remember what I did. Also it's possible that the actual copying had been made with an older version of Writer. Actually I'm using LibreOfficeWriterPortable.exe.
Comment 4 m_a_riosv 2023-10-17 21:27:20 UTC
Please, can you attach a sample file with the issue before accept the changes. I'm not able to reproduce from scratch.
Version: 7.5.8.1 (X86_64) / LibreOffice Community
Build ID: a3cc32c5bcaabeae7ab60e12c44c40a7d8d36345
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 5 Ulrich Windl 2023-10-18 09:52:23 UTC
When those number re-appeared I examined the XML for such an entry; it looks like this (line-breaks inserted for readability):

<text:h text:style-name="P327" text:outline-level="5">
<text:soft-page-break/>
<text:span text:style-name="Hostname">
<text:span text:style-name="T118">r</text:span>
</text:span>
<text:span text:style-name="Hostname">ksapv03</text:span>
</text:h>

The odd thing is the "style-break" after the first letter:
When I marked the whole word and executed "remove direct formatting", the extra numbers also vanished. As can be seen from XML, they are not stored in the document, but "created on the fly". I'm unsure what caused the extra style break.

Also: I'm not allowed to share the original document (in case one would ask for it).

But here is style "T118":
<style:style style:name="T118" style:family="text">
<style:text-properties fo:font-size="11.8999996185303pt" fo:font-weight="bold" style:font-size-asian="11.8999996185303pt" style:font-weight-asian="bold" style:font-size-complex="11.8999996185303pt" style:font-weight-complex="bold"/>
</style:style>
Comment 6 QA Administrators 2023-10-19 03:15:32 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2023-10-27 13:53:16 UTC
Please recreate a minimal test case that you can share in public.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 8 Ulrich Windl 2024-02-02 10:48:34 UTC
OK, re-start this:
There are (at least) two problems with record changes inside numbered sections:

1) The color to show being used to show changes (blue) is different fro the color used to show other changes
2) The number shown as changed even when it did not

I have a sample document and screen shots to demonstrate.
Version used was:
Version: 7.5.7.1 (x86) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

Version 1 of the document is:
1 A
1.1 B
1.2 C
Record changes is enabled, then a paragraph is inserted after "B" (Version 2 of the document)

Changes incorrectly show "C" being "1.1" before the change (if I interpret the display correctly)
Comment 9 Ulrich Windl 2024-02-02 10:49:18 UTC
Created attachment 192341 [details]
Sample document
Comment 10 Ulrich Windl 2024-02-02 10:49:52 UTC
Created attachment 192342 [details]
Document before change
Comment 11 Ulrich Windl 2024-02-02 10:50:25 UTC
Created attachment 192343 [details]
Document after change