Bug 155110 - In Writer, version 7.2.5.2 can jump from a point in the text to the content's lowest outline entry in Navigator, using a single-click. In later versions, it jumps to a numeric "__Ddelink_[99999]" entry in the Bookmarks List, which is meaningless.
Summary: In Writer, version 7.2.5.2 can jump from a point in the text to the content's...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.0 alpha1+
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-01 15:50 UTC by Jack Appelmans
Modified: 2023-05-12 14:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice Writer Document (ODT format) with Default Style set (9.91 KB, application/ODT)
2023-05-01 17:24 UTC, Jack Appelmans
Details
Test data file for Navigator synchronization bug in Writer versions 7.4.2 and later. Evinces defect. (241.12 KB, application/ODT)
2023-05-01 17:37 UTC, Jack Appelmans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Appelmans 2023-05-01 15:50:39 UTC
Description:
I use customized styles.
I assign outline levels to the styles in the Style Organizer.
The Navigator structures the outline of the document by the cursor's position in the document and outline level.
This allows an author to use the Navigator to jump 
 a) from the Outline to the top of the relevant of content in the document (using a single-click)
 b) from the content to the lowest-level Outline entry in the Navigator corresponding to the relevant content's start of that section of the style.

Bug: This works in version 7.2.5.2 (x64). But in later versions I've tried out, including the 7.4 and 7.5 versions, attempting to use feature (b) above results in the Navigator's jumping not to the content's Outline entry, but to an obscurely-labeled entry in the Bookmarks list that begins with "__Ddelink__" followed by a numeric string. 

Steps to Reproduce:
1. In version 7.2.5.2, create a document with custom styles. Use a mix of headings, bullet lists and paragraph styles to isolate how the problem occurs.

2. Assign various outline levels to the styles in the Organizer.

3. Enter a set of segments of text paragraphs, and assign styles to them. To demonstrate the bug, coherence of the styles and their use in the content shouldn't matter.

4. Save the document as the Master Test Document. Back it up to a different filename suffix, to distinguish from the Master. 

5. Verify that with the appropriate options selected, the Navigator can be used to jump from an outline entry to a section of text, and the reverse.

6. Exit versions 7.2.5.2, and start 7.4.6.2 (or a later) version.

7. Open the Master Text Document, and without making any edits, jump from a section of the Navigator to the associated section of the document content.

8. Place the cursor in a different page of the MTD, and observe the behavior in the Navigator pane. If you are reproducing the bug, it jumps to the Bookmarks list with a user-meaningless label, instead of the actual Outline entry for the content location that you originated from.



Actual Results:
Navigator jumps to the Bookmarks section, and specifically to an entry in a list of (apparently) randomly-numbered DDE link entries. It offers no indication of the actual Outline entry to which the cursor's content position corresponds.

Expected Results:
Clicking on any part of the content causes the Navigator to jump to the lowest Outline entry corresponding to that position of the content.


Reproducible: Always


User Profile Reset: No

Additional Info:
I have been using version 7.2.5.2 successfully for a couple of years.
I accidentally triggered an upgrade to 7.5.2 while trying to download a helpfile.
(I'm not saying more about that here.)

After I discovered the Navigator bug in version 7.5.2, I rolled backwards to version 7.4.6.2., and found it occurring there, too. (Rollback = Uninstall, Install)

After 7.4.6.2. proved to have the same defect, I rolled back to 7.2.5.2.

That version's Navigator pane performed correctly once again, so the problem can be isolated to the upgraded software versions, and not a change in any User-related information. 

Note: When I reinstalled 7.2.5.2., I did not (re)apply any customizations of features or options. So the restoration of functionality in an earlier version also points to the upgraded software as the locus of the defect's causative factor(s), rather than the user, unless, after performing an uninstall, any customized parameter settings are still preserved by specific version number, and they are restored with the reinstall of an older version.

Frankly, that seems far-fetched, but it remains a possibility.
Comment 1 Jack Appelmans 2023-05-01 17:24:29 UTC
Created attachment 187035 [details]
LibreOffice Writer Document (ODT format) with Default Style set

Control test data file for testing the LibreOffice Writer Navigator's [synchronize Navigator pane with document content cursor location] bug in versions 7.4.2. and later. 

Navigator pane synchronization works correctly with this test data file.
Comment 2 Jack Appelmans 2023-05-01 17:37:13 UTC
Created attachment 187036 [details]
Test data file for Navigator synchronization bug in Writer versions 7.4.2 and later. Evinces defect.

2023-05-01 JTA: Test data file to demonstrate defective behavior in the Writer Navigator pane synchronization feature in versions 7.4.2. 

This data file augments the default styles with several hierarchies of additional styles. Each of the new styles is assigned an Outline Level to ensure proper inheritance and indenting in the Outline of the Navigator Pane.

Behaviors:

1. Clicking on an outline entry in the Navigator Pane accurately locates the cursor within the document content at the corresponding location.

2. Placing the cursor in any location within the content should cause the Navigator pane to synchronize by placing currency on the corresponding lowest outline entry for that content location, as it does in version 7.2.5.2.

However, in versions 7.4.2 and later, the Navigator Pane synchronizes to an entry within the Bookmarks list labeled "__Ddelink__" with a numeric suffix instead of the correct entry in the Outline. 

Further, I have observed that *multiple locations* in the document all cause the Navigator pane to synchronize to the *same* "__Ddelink__" entry in the Bookmarks list, despite their actually corresponding to *different* entries in the Outline.

(As mentioned before, version 7.2.5.2 continues to correctly synchronize the Navigator Pane's outline and the content bidirectionally.)
Comment 3 Buovjaga 2023-05-12 14:28:43 UTC
So your fundamental problem is that you have created meaningless bookmarks and now they haunt you. Based on the names, apparently you have used the special pasting as DDE links or something. Before 7.3 and commit cdc1f41d4530ad3ec553d90dad803bc5b940656c bookmarks were not tracked at all in the Navigator. So just get rid of your bookmarks and be happy, I guess.