Bug 161785

Summary: Autofill overlay drawn above the cursor after scrolling the window in Calc
Product: LibreOffice Reporter: Rafael Lima <rafael.palma.lima>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal    
Priority: medium    
Version: 24.8.0.0 beta1+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Selection before scrolling (OK)
Selection after scrolling (bug)

Description Rafael Lima 2024-06-25 21:12:25 UTC
Created attachment 194956 [details]
Selection before scrolling (OK)

In LO 24.8 the selection overlay now has an internal white line for better contrast (see fix for bug 161204). However, after selecting a range of cells and scrolling the window, the order in which the cursor and selection overlays is inverted, making the selection overlay appear on top of the cursor.

Steps to reproduce
1) Open a blank and set the document zoom to a high value (to make it easier to see the bug, use 200% or more)
2) Select range B4:C8
3) Notice that the selection is behind the cursor, which is expected
4) Without unselecting the range, scroll the window
5) Now the selection is in front of the cursor (not expected)

Expected behavior
The selection should remain behind the cursor

See attached screenshots for more info.

System info

Version: 24.8.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: d681c57ba51b635ba7c85b21e062732110e8293f
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Rafael Lima 2024-06-25 21:13:21 UTC
Created attachment 194957 [details]
Selection after scrolling (bug)

Notice here that the selection overlay is in front of the cursor. It should be behind.
Comment 2 Rafael Lima 2024-06-25 22:10:00 UTC
Thanks for confirming. Patch is under way.
Comment 3 gladys 2024-07-02 20:26:33 UTC
Hi Rafael,

somehow i can not reproduce the bug in version:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 74185b8edf7f046a3372319da86a1d8ca0024c87
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded

or

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 4 ady 2024-07-02 22:38:53 UTC
(In reply to gladys from comment #3)

> somehow i can not reproduce the bug in version:
> 
> Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: 74185b8edf7f046a3372319da86a1d8ca0024c87
> or
> 
> Version: 7.6.4.1 (X86_64) / LibreOffice Community
> Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1

@Gladys,

In order to reproduce the described behavior, you need to use a build that is later than Jun 12, 2024. Neither of the versions you tested with are relevant for this report.