Bug 167566 - Selected cells rectangle drawn with fill over cell contents
Summary: Selected cells rectangle drawn with fill over cell contents
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Cell-Border Cell-Selection
  Show dependency treegraph
 
Reported: 2025-07-18 08:50 UTC by Eyal Rozenberg
Modified: 2025-08-02 05:35 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A resized Calc 26.2 window, Arabic UI, with a selection (52.83 KB, image/png)
2025-07-18 09:11 UTC, Eyal Rozenberg
Details
Before and after of cell selection (1.56 KB, image/png)
2025-08-01 10:49 UTC, Buovjaga
Details
A resized Calc 26.2 window, English UI, with a selection (for reference) (57.61 KB, image/png)
2025-08-01 17:04 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2025-07-18 08:50:44 UTC
Reproduction instructions:

1. Choose an RTL UI (e.g. Arabic)
2. Create a new Calc document.
3. Select two adjacent cells (e.g. one below the other)
4. resize the window

Expected result:
Selected cells keep the same shading between steps 3 and 4, as well as a stronger-color surrounding rectangle.

Actual result:
The entire cell area is shaded in the color of the surrounding rectangle.

Build info:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ef1c437f30b0869a5b9fa33809bac2c6665ace3
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: qt5 (cairo+xcb)
Locale: en-IL (en_IL); UI: ar-SA
Calc: CL threaded

Seeing this also with gtk3 and gen VCL's. I suspect this might have something to do with the work on the active cell rectangle before 25.8 but I'm not sure. This doesn't happen with LO 25.2.4.3
Comment 1 Eyal Rozenberg 2025-07-18 09:11:05 UTC
Created attachment 201867 [details]
A resized Calc 26.2 window, Arabic UI, with a selection
Comment 2 Buovjaga 2025-08-01 10:49:02 UTC
Created attachment 202127 [details]
Before and after of cell selection

I noticed weirdness in cell selection and bibisected with linux-64-26.2 to a7c39fb097435f5219ee8dc6ec3fec62b14ebd5b
Allow changing ViewInformation2D in BaseProcessor2D

I'm guessing it's the same issue as reported here.
Comment 3 Buovjaga 2025-08-01 10:51:36 UTC
I didn't need any RTL UI or resizing, though.
Comment 4 Eyal Rozenberg 2025-08-01 14:45:56 UTC
(In reply to Buovjaga from comment #2)
> Created attachment 202127 [details]
> Before and after of cell selection

The "before" image looks like you've already selected a range of cells.
Comment 5 Buovjaga 2025-08-01 16:19:09 UTC
(In reply to Eyal Rozenberg from comment #4)
> (In reply to Buovjaga from comment #2)
> > Created attachment 202127 [details]
> > Before and after of cell selection
> 
> The "before" image looks like you've already selected a range of cells.

Yes, before the causing commit and after it.
Comment 6 Eyal Rozenberg 2025-08-01 17:03:06 UTC
(In reply to Buovjaga from comment #5)
> Yes, before the causing commit and after it.

Ah, I thought you meant "before selection" and "after selection". At any rate - it's not clear to me your screenshot shows the same phenomenon I'm talking about; and I can't reproduce except with RTL UI.

I'll attach a reference screenshot.
Comment 7 Eyal Rozenberg 2025-08-01 17:04:54 UTC
Created attachment 202136 [details]
A resized Calc 26.2 window, English UI, with a selection (for reference)

Compare this screenshot to the screenshot for an RTL UI, in attachment 201867 [details]. We only see the light shading of the selection - not the whole selection colored with the active cell border color.
Comment 8 Buovjaga 2025-08-01 18:25:19 UTC
(In reply to Eyal Rozenberg from comment #7)
> Created attachment 202136 [details]
> A resized Calc 26.2 window, English UI, with a selection (for reference)
> 
> Compare this screenshot to the screenshot for an RTL UI, in attachment
> 201867 [details]. We only see the light shading of the selection - not the
> whole selection colored with the active cell border color.

I can't repro, so let's treat it separately after all. I created bug 167768

Can you bibisect this issue you discovered?
Comment 9 Eyal Rozenberg 2025-08-01 18:42:20 UTC
(In reply to Buovjaga from comment #8)
> Can you bibisect this issue you discovered?

Not immediately, but: 

* It's not there with 25.2.5.2 nor with 25.8.0.2 .
* I'm guessing it may have something to do with the active selection rectangle work from a few months back.
Comment 10 Buovjaga 2025-08-02 05:35:55 UTC
(In reply to Eyal Rozenberg from comment #9)
> (In reply to Buovjaga from comment #8)
> > Can you bibisect this issue you discovered?
> 
> Not immediately, but: 
> 
> * It's not there with 25.2.5.2 nor with 25.8.0.2 .
> * I'm guessing it may have something to do with the active selection
> rectangle work from a few months back.

I bet it's due to some lower level graphics refactoring, regardless of any interplay with the active selection work.