Download it now!
Bug 118673 - Cross reference category disappears when a comment is placed in the caption category
Summary: Cross reference category disappears when a comment is placed in the caption c...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium minor
Assignee: Not Assigned
Keywords: bibisected, regression
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
Reported: 2018-07-10 15:47 UTC by wolfgang.fuchs
Modified: 2020-06-17 06:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

example of the described bug (10.91 KB, application/vnd.oasis.opendocument.text)
2018-07-10 15:49 UTC, wolfgang.fuchs

Note You need to log in before you can comment on or make changes to this bug.
Description wolfgang.fuchs 2018-07-10 15:47:59 UTC
When a comment is placed in the category name of a caption, the category disappears in all cross references that use category.
For example, when a comment is added to the word "Table" in the caption "Table 1: <Caption Text>", then all cross references which should display "Table 1" will instead display only "1". As soon as the comment is removed, the cross reference will correctly display "Table 1"

Steps to Reproduce:
1. Create a table.
2. Add a caption.
3. Insert a cross reference to the table, using "Category and Number"
4. Add a comment to the word "Table" in the caption.

Actual Results:
The cross reference will display "1" instead of "Table 1" as soon as the comment is added.

Expected Results:
The cross reference should not be affected by a comment to the caption.

Reproducible: Always

User Profile Reset: Yes

Additional Info:
Comment 1 wolfgang.fuchs 2018-07-10 15:49:35 UTC
Created attachment 143431 [details]
example of the described bug
Comment 2 Timur 2018-07-10 17:05:56 UTC
Repro 6.2+
Comment 3 QA Administrators 2019-08-01 03:36:41 UTC Comment hidden (obsolete)
Comment 4 wolfgang.fuchs 2019-08-07 07:21:25 UTC
Repro (Ubuntu)
Repro (Windows)
Comment 5 Buovjaga 2020-06-06 15:15:26 UTC
Bibisected with Linux 43all to range

Fortunately we seem to have a clear cause in
fdo#50801 fix cross-reference text when Caption order is Numbering first