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)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Fields-Cross-Reference
  Show dependency treegraph
 
Reported: 2018-07-10 15:47 UTC by wolfgang.fuchs
Modified: 2023-03-15 12:42 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


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

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
Description:
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 5.1.6.2 (Ubuntu)
Repro 6.1.3.2 (Windows)
Comment 5 Buovjaga 2020-06-06 15:15:26 UTC
Bibisected with Linux 43all to range https://git.libreoffice.org/core/+log/36170cd0dbc3409270cf3cf998805a790ee6228f..b0f170d7df9cff12535d2ecfd146b32b745a8ef8

Fortunately we seem to have a clear cause in https://git.libreoffice.org/core/+/7dde426915ebbb7ea2ca3dc661f0a9ac70a26d5c%5E%21/
fdo#50801 fix cross-reference text when Caption order is Numbering first
Comment 6 QA Administrators 2022-06-18 03:31:13 UTC Comment hidden (obsolete)
Comment 7 sdc.blanco 2023-03-15 12:42:28 UTC
Repro -- but a few qualifications.

1. The loss of "Table" from the display of the cross-reference variable happens if the selection for comment includes:

   a. part of the word "Table"  
   b. part of the word "Table" and some text before "Table"

2. No problem (i.e., no loss of category name in cross-reference variable), WFM if the selection for comment includes:

    c. part of the word of the word "Table", but the selection goes past the "e" in Table and includes other text.
    d. the entire word "Table".

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ee5dbd193fa24b46fb980ddd8a6c39ca349d0d01
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded