Bug 75633 - Bookmark position slightly read character to the right when bookmark is inside a footnote from .doc file
Summary: Bookmark position slightly read character to the right when bookmark is insid...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: lowest trivial
Assignee: Not Assigned
Depends on:
Blocks: Footnote-Endnote DOC
  Show dependency treegraph
Reported: 2014-03-01 03:28 UTC by aurimas.dev
Modified: 2019-12-11 10:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

ZIP containing two .doc files as described in the description (7.33 KB, application/x-zip-compressed)
2014-03-01 03:28 UTC, aurimas.dev

Note You need to log in before you can comment on or make changes to this bug.
Description aurimas.dev 2014-03-01 03:28:50 UTC
Created attachment 94926 [details]
ZIP containing two .doc files as described in the description

Steps to reproduce (attaching file "FromWord.doc" that has undergone steps 1-4):
1. In Microsoft Word, open a new document.
2. Insert a footnote with text "12345". Highlight "3" and insert Bookmark. Name it "test".
3. Save file in .doc format. Close and re-open in Microsoft Word
4. Verify that the bookmark is still set on the number "3" (this is a bit broken in MS Word, since it doesn't seem to be possible to jump to a bookmark in a footnote): Positing the cursor anywhere and open the Insert Bookmark dialog, "test" will be listed; close the dialog and delete the number "3" from the footnote; open the Insert Bookmark dialog, "test" will no longer be listed. Close the document without saving changes.
5. Open the .doc file in LibreOffice, press F5 and double-click the "test" bookmark.

Observed result: Number "4" is highlighted.

Expected result: Number "3" should be highlighted.

I think there is also an issue when writing the bookmark to a .doc file from LibreOffice, because if steps 1-4 are carried out in LibreOffice, the result of step 5 is that number "5" is highlighted. (file "FromLO.doc" is an example of this case)
Comment 1 Björn Michaelsen 2014-03-27 23:53:44 UTC Comment hidden (no-value)
Comment 2 Björn Michaelsen 2014-03-28 00:07:33 UTC
confirming, but bibisect show this all the way back to pre-3.5 at d6cde02dbce8c28c6af836e2dc1120f8a6ef9932, thus likely not a regression. Also tested with ODT, which doesnt show the issue (all the way back to pre-3.5).

Looks like an off-by-one error in reading and writing bookmarks each in the *.doc filter
Comment 3 Joel Madero 2015-05-02 15:44:03 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2015-06-21 12:58:27 UTC

Win 7 Pro 64-bit Version:
Build ID: 3ecef8cedb215e49237a11607197edc91639bfcd
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-06-19_23:16:58
Locale: fi-FI (fi_FI)
Comment 5 QA Administrators 2016-09-20 10:11:16 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2019-12-03 14:14:57 UTC Comment hidden (obsolete)
Comment 7 Timur 2019-12-11 10:46:06 UTC
Repro 6.5+ for DOC. Selection is somewhat right to original. Seen better if there are more words is footnote. So I change to trivial.
DOCX is fine.