Bug 157401 - Writer: When setting cross reference it was not shown properly as a field
Summary: Writer: When setting cross reference it was not shown properly as a field
Status: RESOLVED DUPLICATE of bug 157394
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-23 19:12 UTC by Franklin Weng
Modified: 2023-09-23 20:19 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
7.5.3: correct behavior (Screenshot 1) (82.97 KB, image/png)
2023-09-23 19:13 UTC, Franklin Weng
Details
7.6.0.0alpha0+: The behavior is strange (Screenshot 2) (67.38 KB, image/png)
2023-09-23 19:14 UTC, Franklin Weng
Details
7.6.0.1: The field texts was not gray backgrounded (Screenshot 3) (54.30 KB, image/png)
2023-09-23 19:15 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2023-09-23 19:12:43 UTC
Description:
In 7.5.3.2, the behavior is correct.  When selecting a text and setting a reference, it will show a field with the xRef name. This is desired behavior. (Screenshot 1)

In 7.6.0.0-alpha0+, when selecting texts and setting the cross reference, it will insert the field after the selected text, which is different than 7.5. (Screenshot 2)

In 7.6.0.3, it is even more weird.  The behavior is similar to 7.6.0.0alpha, but we can not identify if it is field or not. (Screenshot 3)

The cross reference itself works.  I mean, when inserting a reference, it is not shown as a field, but clicking it can show reference settings, and ctrl-click it can jump back to the reference.  But I can not see if that is a reference or not since no gray background.

Steps to Reproduce:
1. Select texts
2. Set cross reference
3. It was not shown properly

Actual Results:
The reference text was not gray-backgrounded.  I can not identify if the text is a reference or not.

Expected Results:
It should shown as a field (gray-backgrounded).


Reproducible: Always


User Profile Reset: No

Additional Info:
Behavior corrected version 7.5.3.2:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 9f56dff12ba03b9acd7730a5a481eea045e468f3
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded


Behavior incorrect versions:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 127eacf630e1712fd5addcabed404b2d33752311
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: en-US
Calc: threaded

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: zh-TW
Calc: threaded
Comment 1 Franklin Weng 2023-09-23 19:13:30 UTC
Created attachment 189776 [details]
7.5.3: correct behavior (Screenshot 1)

In version 7.5.3.2 the behavior and appearance is correct.
Comment 2 Franklin Weng 2023-09-23 19:14:22 UTC
Created attachment 189777 [details]
7.6.0.0alpha0+: The behavior is strange (Screenshot 2)

In 7.6.0.0alpha0+, the reference field will be inserted after the selected text instead of replacing it, which is not the intended behavior.
Comment 3 Franklin Weng 2023-09-23 19:15:42 UTC
Created attachment 189778 [details]
7.6.0.1: The field texts was not gray backgrounded (Screenshot 3)

In version 7.6.0.1 the reference (field) texts is not gray backgrounded, so we can not tell if the text has or is a reference.
Comment 4 Franklin Weng 2023-09-23 20:19:18 UTC

*** This bug has been marked as a duplicate of bug 157394 ***