Bug 119401 - Selecting text with hyperlink takes only first letter and tries to move it
Summary: Selecting text with hyperlink takes only first letter and tries to move it
Status: RESOLVED DUPLICATE of bug 116384
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1 all versions
Hardware: All Linux (All)
: low minor
Assignee: Not Assigned
URL: https://crashreport.libreoffice.org/s...
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink Selection
  Show dependency treegraph
 
Reported: 2018-08-21 13:01 UTC by david.cortes.rivera
Modified: 2023-10-19 13:22 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["SwFEShell::IsFrameSelected"]


Attachments
file that shows the problem (12.65 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-08-21 13:01 UTC, david.cortes.rivera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david.cortes.rivera 2018-08-21 13:01:10 UTC
Created attachment 144346 [details]
file that shows the problem

If I create some document with a hyperlink in MS word and then open the same document in LO writer, when I try to select the text that has the hyperlink with the mouse, it will, instead of selecting as I move the mouse, select only the first letter and then try to move it to wherever the mouse is moving while holding the click.

Attached is a simple example. In order to reproduce it:
-Open the file with LO Writer.
-Shift the current focus towards the end of the sentence.
-Try to select the word "click" by pointing the mouse at the beginning of it (right before the "c"), clicking it, and moving the mouse to the right while holding the click.

Expected behavior:
-Should highlight and select the word "click" as you move the mouse to the right.

Actual behavior:
-Selects "c", then moves it around. If moving it at first and then doing Ctrl + Z, next time one tries to do the same it behaves as expected.
Comment 1 Dieter 2018-08-21 13:32:13 UTC Comment hidden (obsolete)
Comment 2 david.cortes.rivera 2018-08-21 13:41:36 UTC Comment hidden (obsolete)
Comment 3 Jacques Guilleron 2018-08-22 10:11:18 UTC Comment hidden (obsolete)
Comment 4 david.cortes.rivera 2018-08-22 10:16:32 UTC
(In reply to Jacques Guilleron from comment #3)
> I don't reproduce either with
> LO 6.2.0.0.alpha0+ Build ID: 380d0fda99ff664de8443cfc33c7c86bca18134c
> CPU threads: 2; OS: Windows 6.1; UI render: default; 
> TinderBox: Win-x86@42, Branch:master, Time: 2018-08-16_23:10:54
> Locale: en-US (fr_FR); Calc: CL

Any chance that you could try the linux version?
Comment 5 Timur 2018-08-22 11:04:57 UTC Comment hidden (obsolete)
Comment 6 david.cortes.rivera 2018-08-23 11:18:10 UTC
(In reply to Timur from comment #5)
> Also no repro Win/Lin. 
> Looks more like a mouse issue than bug.
> Please try another mouse or computer.

Tried 2 different mice + the touchpad, and the problem still persists.
Comment 7 Xisco Faulí 2018-08-25 14:19:48 UTC
Reproduced in

Version: 6.2.0.0.alpha0+
Build ID: e78a6c4231cfb33643b45442b786e1e31b2781a8
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); Calc: threaded

and with gtk
Comment 8 Xisco Faulí 2018-08-25 14:31:41 UTC
Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.10; Render: default; 

Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

Note: it happens 2/3 times out of 5...
Comment 9 QA Administrators 2019-09-02 09:26:50 UTC Comment hidden (obsolete)
Comment 10 david.cortes.rivera 2019-09-02 16:50:43 UTC
Bug is still present, but what's worse, now sometimes it crashes Writer instead of just annoyingly moving the text.

Version: 6.3.0.4
Build ID: 1:6.3.0-2
CPU threads: 16; OS: Linux 5.2; UI render: GL; VCL: kde5; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 11 Ayar 2020-07-03 13:54:20 UTC
This bug is still present, I was going to add a bug report but I found this thread instead so I'm reporting it here. As David Cortes points out, Writer crashes when doing the thing.

However to reproduce the it doesn't need to be a selection from the start of the hyperlink.

Version: 6.4.0.3
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: CL
Comment 12 QA Administrators 2022-07-06 03:36:32 UTC Comment hidden (obsolete)
Comment 13 Stéphane Guillou (stragu) 2023-10-19 13:22:17 UTC
Reproduced the move of first letter (or other parts of the hyperlink) in libreoffice-7.1.3.2

...but not reproduced since libreoffice-7.1.4.2

Seeing that it was only reproduced on Linux, and looking at the 7.1.4 fixes[1], let's mark as duplicate of bug 116384. Thanks Caolán!

The inconsistent whole-link move vs part-of-link selection, I can still reproduce, but let's track that in bug 72266.

(In reply to david.cortes.rivera from comment #10)
> Bug is still present, but what's worse, now sometimes it crashes Writer
> instead of just annoyingly moving the text.

That crash signature has come up last in 7.1.6.2, so let's assume that's long gone too.
https://crashreport.libreoffice.org/stats/signature/SwFEShell::IsFrameSelected

[1]: https://wiki.documentfoundation.org/Releases/7.1.4/RC1

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