Bug 132150 - Right mouse button clears single-letter selection
Summary: Right mouse button clears single-letter selection
Status: RESOLVED DUPLICATE of bug 111969
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Character-Dialog
  Show dependency treegraph
 
Reported: 2020-04-16 14:07 UTC by Jan Kratochvil
Modified: 2023-10-19 15:10 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
selection of "1" before right mouse button (23.86 KB, image/png)
2020-04-19 11:01 UTC, Jan Kratochvil
Details
selection of "1" after right mouse button gets unselected (32.09 KB, image/png)
2020-04-19 11:02 UTC, Jan Kratochvil
Details
selection of "12" stays selected after right mouse button (31.75 KB, image/png)
2020-04-19 11:05 UTC, Jan Kratochvil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2020-04-16 14:07:55 UTC
libreoffice-writer-6.3.5.2-5.fc31.x86_64

oowriter
1
shift-left
right-click on the highlighted text "1"
Character->Character...
HyperLink
URL
http://a.com
OK

Nothing happens, the text "1" has no underline, URL is ignored/lost.

If I make the text longer (such as "a1a" instead of "1") or maybe if I highlight it by mouse from left to right (and not by keyboard from right to left) it starts working.

It is not 100% reproducible but the reproducibility instructions above never disappointed me.
Comment 1 Dieter 2020-04-19 05:51:43 UTC
Jan, http://a.com doesn't seem to be a valid URL. Please add correct URL.
=> NEEDINFO
Comment 2 Jan Kratochvil 2020-04-19 06:50:58 UTC
Instead of http://a.com you can enter any other URL, I have tried now:
  https://bugs.documentfoundation.org/show_bug.cgi?id=132150

The behavior is the same.
Comment 3 Jan Kratochvil 2020-04-19 06:59:55 UTC
Verified it is still broken also with:
  libreoffice-writer-6.4.1.2-1.fc33.x86_64
Comment 4 Dieter 2020-04-19 10:40:01 UTC
I've tried with

Version: 7.0.0.0.alpha0+ (x64)
Build-ID: 1c9ced04189c9d23ffea05d5570960b54b05ef28
CPU-Threads: 4; BS: Windows 10.0 Build 18363; UI-Render: Skia/Raster; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: CL

and http://www.example.com and couldn't reproduce it. Is it possible for you to insert hyperlink with Insert => Hyperlink?
Comment 5 Jan Kratochvil 2020-04-19 11:01:29 UTC
Created attachment 159705 [details]
selection of "1" before right mouse button
Comment 6 Jan Kratochvil 2020-04-19 11:02:04 UTC
Created attachment 159706 [details]
selection of "1" after right mouse button gets unselected
Comment 7 Jan Kratochvil 2020-04-19 11:05:06 UTC
Created attachment 159708 [details]
selection of "12" stays selected after right mouse button
Comment 8 Jan Kratochvil 2020-04-19 11:07:08 UTC
I see now it is unrelated to hyperlinks.
Just for short selected text right mouse button will deselect it before showing the context menu. So then with no text selected the Hyperlink does set it to no text - I will file another Bug for that.
Comment 9 Jan Kratochvil 2020-04-19 11:26:20 UTC
I think this is a duplicate of: Bug 72266
Comment 10 Jan Kratochvil 2020-04-19 12:06:56 UTC
(In reply to Jan Kratochvil from comment #8)
> So then with no text selected the Hyperlink does
> set it to no text - I will file another Bug for that.

Filed as: Bug 132253
Comment 11 Buovjaga 2020-06-22 14:11:24 UTC
I confirm this on Linux, but not on Windows. This is not seen with gen backend.

Already in oldest of Linux 6.3 bibisect repo.

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: ae3d26ba925f74c992a2d5cdfd44ed5d43968689
CPU threads: 8; OS: Linux 5.7; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 20 June 2020
Comment 12 QA Administrators 2022-06-23 03:47:32 UTC Comment hidden (obsolete)
Comment 13 Jan Kratochvil 2022-06-23 13:09:33 UTC
Still present in: libreoffice-writer-7.3.4.2-1.fc36.x86_64
Comment 14 Jan Kratochvil 2022-06-23 13:11:32 UTC
Changed version back to 6.2.0.3 but it is really present even in 7.3.4.2 (tested only Fedora build).
Comment 15 Stéphane Guillou (stragu) 2023-10-19 12:36:17 UTC
Buovjaga and Jan, can you please check that this does not depend on if you right click on the right half or left half of the character?
If it does depend on that, this is a duplicate of bug 111969.
(and please double-check gen vs gtk3 too, I get the same result in both)
Comment 16 Buovjaga 2023-10-19 13:33:16 UTC
Good catch, confirming duplicate

*** This bug has been marked as a duplicate of bug 111969 ***
Comment 17 Jan Kratochvil 2023-10-19 15:09:10 UTC
Confirming the behavior depends on the left or right side of the character.
Comment 18 Stéphane Guillou (stragu) 2023-10-19 15:10:39 UTC
thank you both!