Bug 160693

Summary: Top borders of merged cells are not painted when the merged cell is partially visible
Product: LibreOffice Reporter: Rafael Lima <rafael.palma.lima>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal Keywords: bibisectRequest, regression
Priority: medium    
Version: 24.8.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 59284    
Attachments: Video showing the problem
Sample ODS file
Sample PNG File

Description Rafael Lima 2024-04-16 12:28:29 UTC
Created attachment 193705 [details]
Video showing the problem

Suppose you have vertically merged cells and you add borders to them. If you have multiple such merged cells stacked vertically and start scrolling your document, you'll notice that the top border is not painted when the merged cell is only partially visible.

To better understand the bug, see attached video.

System info

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.2~rc2-0ubuntu0.23.10.1~lo1
Calc: threaded
Comment 1 Rafael Lima 2024-04-16 12:39:13 UTC
Created attachment 193706 [details]
Sample ODS file

Steps to reproduce:

1) Open the attached "Sample ODS file"
2) Zoom in so that not all merged cells are visible
3) Start scrolling down
4) Notice that when a merged cell is not fully visible, it's top border will not be painted
Comment 2 ady 2024-04-16 19:40:58 UTC
Although I don't repro this on Windows with a recent 24.8 alpha (or, alternatively, I am not understanding the STR), there is a similar issue in tdf#160654 (scrolling horizontally instead of vertically), which I can repro on Windows.
Comment 3 nobu 2024-05-17 08:28:33 UTC
Created attachment 194164 [details]
Sample PNG File

Attached is a graphic of the repeated merging of 3-columns x 10-rows.
Three borders are missing at the bottom of the screen.

Not Reproduced with
Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded

Reproducible with
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: CL threaded
Comment 4 Rafael Lima 2024-05-17 16:40:08 UTC
Based on Comment #3 I am setting this to NEW.

Seems like a regression to me.