Created attachment 110262 [details]
Screenshot of issue in action
If you create a hyperlink with a single character label, if you select text from right to left it will cause text field to be empty in Edit Hyperlink interface. It works as expected if selected from left to right.
After editing the link if you don't manually restore the text, hyperlink editor will automatically replace the text / label of hyperlink with the link itself. Exactly what happens when no text/label is supplied to a freshly created hyperlink.
Attached a screenshot of issue and a sample document.
Created attachment 110263 [details]
Sample document to easy reproduce the issue
Thank you for submitting the bug. I can confirm that the bug is available in 3.3.0 and master on Linux.
I can confirm that this happens with a single character or multiple characters in the text of the hyperlink. The main issue is that right to left selection to the beginning of the text is causing the problem.
Build ID: 8bc56801af0540c0496c1f8ddd335578a8791017
TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2014-11-28_23:01:06
I have basically the same problem when selecting a hyperlink from right to left, although it occurs only when you start dragging in a very pixel-precise small area exactly on the right.
But in my case the problem is more destructive: if you only want to select a hyperlink (for copying) and this problem occurs, the link and its text completely disappear from the document.
It can be undone with an Undo, which suggests that under the hood a different or an extra command is executed other than simply selecting.
Windows 7 64-bit
LibreOffice (Writer) 220.127.116.11
1/ create new writer document
2/ press dt<F3> to create a dead text
3/ select first letter from right-to-left and press the Insert Hyperlink toolbar button
Insert Link Dialog pops up with selected text prefilled in the "Text" field.
Just tested on LibreOffice 5.1.4 on Linux and Im seeing the expected behavior. This needs a better reproduction scenario. => NEEDINFO
Reproduction scenario in Writer document:
1. write some text like Aa
2. select that text and insert hyperlink (with Hyperlink toolbar button or Format-Character-Hyperlink)
3. select just text Aa from right-to-left (with mouse or keyboard) and right-click Edit Hyperlink...
4. note that text is empty and there should be "Aa"
5. Change URL and click OK (there's Bug 91832 with Apply)
5. note that Aa is gone and full hyperlink is shown
Expected: text Aa is still there after hyperlink change
Note: seems there's another bug here: when hyperlinked text is selected, Format-Character-Hyperlink doesn't show URL.
Repro with 5.2.0 but not reproduced anymore in 5.2.4, so I close as WFM.
Feel free to reopen if proved otherwise.
Confirmed fixed, though the fix of the cursor jumping to the end of the hyperlink text isnt a really nice fix. :D
Build ID: d1b8074ffe4b945a41e3ad9e1fb43332d78d73fb
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; VCL: gtk2; Layout Engine: new;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time: 2017-01-10_23:02:10
Locale: en-US (en_US.UTF-8); Calc: group