Bug 161785 - Autofill overlay drawn above the cursor after scrolling the window in Calc
Summary: Autofill overlay drawn above the cursor after scrolling the window in Calc
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.0.0 beta1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 21:12 UTC by Rafael Lima
Modified: 2024-06-25 22:10 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Selection before scrolling (OK) (6.99 KB, image/png)
2024-06-25 21:12 UTC, Rafael Lima
Details
Selection after scrolling (bug) (9.36 KB, image/png)
2024-06-25 21:13 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this 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.