Bug 149620

Summary: Top and left border frame offset by 1 pixel
Product: LibreOffice Reporter: phv <libreoffice>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: dgp-mail
Priority: medium    
Version: 7.3.4.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108382, 107565    
Attachments: 1-pixel gap between border and frame edges
Test document with both frame and table for comparison

Description phv 2022-06-19 16:12:42 UTC
Description:
This is a bug that exasperates me because the rendering on pdf is affected; When a border is added to a frame, the top and left lines are shifted by one pixel leaving the background of the frame on both edges.

Steps to Reproduce:
1. Create a new Writer document.
2. Insert a frame.
3. Fill the frame area with a color.
4. Add all four borders with another color.

Actual Results:
Top and left border lines have a one-pixel gap with the frame edges.

Expected Results:
Top and left border lines shouldn't show any gap with the frame edges.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
This is not a software rendering issue since the gap is also seen after exporting the document to pdf format. Furthermore, the tables are not affected. This is a result of a wrong calculation in the placement of the border relative to the frame.

This behavior is all the more damaging since frames are often used as decorative elements.
Comment 1 phv 2022-06-19 16:15:27 UTC
Created attachment 180833 [details]
1-pixel gap between border and frame edges
Comment 2 phv 2022-06-19 16:17:00 UTC
Created attachment 180834 [details]
Test document with both frame and table for comparison
Comment 3 Dieter 2022-07-16 14:41:44 UTC
I confirm it with

Version: 7.3.5.1 (x64) / LibreOffice Community
Build ID: d56c1c78db15939340c3db8ee3b6667832313d23
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL