Bug 153085

Summary: Value of cross-references expand when setting cursor directly after inserted reference
Product: LibreOffice Reporter: Robert Großkopf <robert>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: vsfoote
Priority: medium    
Version: 5.1.5.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107905    
Attachments: Open the document. Try to add content directly after reference. Works first, fails second time.

Description Robert Großkopf 2023-01-18 09:49:39 UTC
Created attachment 184742 [details]
Open the document. Try to add content directly after reference. Works first, fails second time.

If I set a reference (Insert → Field → More Fields → Cross-references → Set reference) at the end of the entered text or if I set the cursor directly behind a reference, then the content is expanded when typing new content.
 
For newly opened documents, only directly after opening the document is it possible to enter text without expanding a reference. On the second try, all references are expanded as soon as I place the cursor at the reference. So I have no sure chance to continue writing if there is a reference at the end of a text.

Try the attached document.
Set cursor directly after a reference and type.
If you just opened the document it will work one time. So delete the new typed character and type again.
Now the value of the cross reference will be expanded if cursor is set directly after the cross reference.

Detected this behavior under OpenSUSE 15.3 64bit rpm Linux,
Version: 7.4.4.2 / LibreOffice Community
Build ID: 85569322deea74ec9134968a29af2df5663baa21
CPU threads: 6; OS: Linux 5.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded

also LO 7.5.0.2
Comment 1 Robert Großkopf 2023-01-18 10:04:06 UTC
Have tested a little bit more:
Behavior is the same when starting in Safe Mode.
Behavior is the same with every LO-version I have installed here, oldest is LO 5.1.5.2 So might be an old bug, introduced by OOo … Set this to the oldest version I have installed.
Comment 2 V Stuart Foote 2023-01-18 14:57:25 UTC
@Robert, rather seems a dupe of bug 81720 (and dupes)?
Comment 3 Robert Großkopf 2023-01-18 16:22:28 UTC
(In reply to V Stuart Foote from comment #2)
> @Robert, rather seems a dupe of bug 81720 (and dupes)?

You are right. Seems to be a duplicate.

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