Bug 132048 - CROSS-REFERENCE: Cutting&Pasting a referenced title breaks the cross-reference to that title
Summary: CROSS-REFERENCE: Cutting&Pasting a referenced title breaks the cross-referenc...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-11 11:07 UTC by Roberto Cantù
Modified: 2023-10-03 14:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Test Case - Before the cut&paste (9.85 KB, application/octet-stream)
2020-04-14 12:03 UTC, Roberto Cantù
Details
Test Case - After the cut&paste (9.98 KB, application/octet-stream)
2020-04-14 12:04 UTC, Roberto Cantù
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Cantù 2020-04-11 11:07:47 UTC
Description:
I have a Writer document with some titles.
Some of these titles are referenced as hyperlinks in the same document.
If I cut a referenced title, the hyperlinks get broken.
Even if I paste the clipboard somewhere else, the hyperlinks remain broken.
Pressing F9 does not repair the hyperlink.

Steps to Reproduce:
1.create a doc with titles and hyperlinks to those titles
2.cut & paste one of those titles


Actual Results:
3.the hyperlinks to that title get broken and cannot be repaired by pressing F9

Expected Results:
3.the hyperlinks to that title remains consistent. 
4.Ctrl-click on the hyperlink brings you to the new location of the moved title


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The behaviour is not affected by OpenGL
Comment 1 Dieter 2020-04-14 08:08:01 UTC
I can't confirm this with

Version: 7.0.0.0.alpha0+ (x64)
Build ID: 962b415edb47187737a5f05c4ff3f6724a19c564
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 2 Roberto Cantù 2020-04-14 12:03:56 UTC
Created attachment 159554 [details]
Test Case - Before the cut&paste
Comment 3 Roberto Cantù 2020-04-14 12:04:25 UTC
Created attachment 159555 [details]
Test Case - After the cut&paste
Comment 4 Dieter 2020-04-14 12:55:31 UTC
Roberto, thanks for your testcase. Now it is clear, that yoour bug is about cross-references and not about Hyperlinks (Insert => Hyperlink).

I can confirm the problem with

Version: 7.0.0.0.alpha0+ (x64)
Build ID: 962b415edb47187737a5f05c4ff3f6724a19c564
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

Steps to reproduce
1. Open an new document
2. Insert a heading
3. Insert cross-reference to that heading (Insert => Field => More Fields => Crosse-references => Type: headings)
3. Cut & Paste heading

Actual result: Cross-reference gets lost
Desired result: Cross-references reappears after pasting heading

I don't recieve the error message I can see in your second document, Roberto. If you used different steps, it would be nice, if you can add them.

I'm not a developer, but I cam imagine, that it is not trivial to fix it. But since it seems to be possible for hyperlinks, it should be feasible.
Comment 5 Roberto Cantù 2020-04-14 15:02:06 UTC
Hello Dieter, sorry for inaccurate translation of the terminology. Because I use the Italian version of LibreOffice, I see terms in Italian. Also the error message that I read in place of the broken cross-reference is in Italian, my best guess for its translation is "Reference source not found". HTH. Roberto
Comment 6 QA Administrators 2022-04-15 04:01:02 UTC Comment hidden (obsolete)
Comment 7 Roberto Cantù 2022-04-15 14:31:10 UTC
Hello QA Team,

tested just now, now it works.

Thank you very much & happy Easter
Roberto

Version: 7.2.6.2 (x64) / LibreOffice Community
Build ID: b0ec3a565991f7569a5a7f5d24fed7f52653d754
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded