Download it now!
Bug 116687 - Multiple Selection highlight not cleared after Ctrl+Left or Ctrl+Right
Summary: Multiple Selection highlight not cleared after Ctrl+Left or Ctrl+Right
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, haveBacktrace, regression
Depends on:
Blocks: Selection
  Show dependency treegraph
 
Reported: 2018-03-28 21:45 UTC by Gerhard Weydt
Modified: 2019-08-19 17:02 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Hardcopy of a sixfold re-selection (3.95 KB, image/png)
2018-03-28 21:45 UTC, Gerhard Weydt
Details
bt with debug symbols (9.24 KB, text/plain)
2018-03-30 07:37 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerhard Weydt 2018-03-28 21:45:28 UTC
Created attachment 140945 [details]
Hardcopy of a sixfold re-selection

In Writer select two not contiguous text portions, using Ctrl for the second selection (for a contiguous selection there is a similar effect, but it's more difficult to describe). Then use Ctrl+Right or Ctrl+Left. Then, as it should be, the cursor jumps to the start of the next word or to the previous one. But the selection is not cancelled, it remains and will only vanish if you close the document. Thus it seems that only the surface representation is affected. This is confirmed by the fact that if you create a selection elsewhere and change the attributes, then only this new selection is affected. The object CurrentSelection also shows only the new selection or simply the cursor position.
It seems that pressing Ctrl is the signal for retaining the selection, even though the combination Ctrl+Right or ...Left does something completely different.
As someone pointed out to me, you can even cumulate the effect by again and again selecting parts of the same primary selection; I enclose a hardcopy of a sixfold selection, resulting in an ever deeper blue colour.
I could reproduce this in Windows 10 for many LibO versions since 4.1.0.2.0. In versions  3.5.0rc3 and older and in OpenOffice this does not happen. For the intermittent versions I cannot say anything, as I had technical problems installing them.
This behaviour has been reproduced twice by other people for different Linux installations and different LibO versions, too.
Comment 1 bnacht 2018-03-29 05:47:37 UTC
Same behavior in:
Version: 5.4.5.1
Build-ID: 40m0(Build:1)
CPU-Threads: 4; BS: Linux 4.4; UI-Render: Standard; VCL: kde4;
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group
Comment 2 Harald Berger 2018-03-29 07:33:11 UTC
Confirming with
WIN10-Home 1709, 64-Bit;
Version: 6.0.2.1 (x64)
Build-ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU-Threads: 8; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 3 Telesto 2018-03-29 18:11:46 UTC
Found in 4.0.0.3

but not in
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5
Comment 4 Julien Nabet 2018-03-30 07:37:07 UTC
Created attachment 140972 [details]
bt with debug symbols

On pc Debian x86-64 with master sources updated yesterday + enable-dbgutil, I don't reproduce this but have an assertion when trying to close the doc.
Comment 5 Telesto 2018-03-30 08:15:40 UTC
(In reply to Julien Nabet from comment #4)
> Created attachment 140972 [details]
> bt with debug symbols
> 
> On pc Debian x86-64 with master sources updated yesterday + enable-dbgutil,
> I don't reproduce this but have an assertion when trying to close the doc.

The is no actual hang (in the sense of non-responding). The text selection is persisted
Comment 6 Gerhard Weydt 2018-03-30 20:40:44 UTC
The title says that the section hangs, not the application.
But to be precise we should say that the selection is cancelled correctly, whereas the selection marking still persists and is visible, which is at least confusing
Comment 7 Buovjaga 2018-07-01 17:55:15 UTC
Bibisected on Ubuntu 14.04 with 43all to range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=179a6db61ee30cf776747802f06edeef45fec461...558476135865d9ae7b8801a82c177fd1098386ff

I am unable to locate a suspicious commit.
Comment 8 QA Administrators 2019-08-19 06:59:56 UTC Comment hidden (obsolete)
Comment 9 Gerhard Weydt 2019-08-19 17:02:35 UTC
The bug is still present in versions 6.2.4.2 and 6.3.0.1