Bug 149620 - Top and left border frame offset by 1 pixel
Summary: Top and left border frame offset by 1 pixel
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Borders 107565
  Show dependency treegraph
 
Reported: 2022-06-19 16:12 UTC by phv
Modified: 2022-07-16 14:41 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
1-pixel gap between border and frame edges (495 bytes, image/png)
2022-06-19 16:15 UTC, phv
Details
Test document with both frame and table for comparison (9.70 KB, application/vnd.oasis.opendocument.text)
2022-06-19 16:17 UTC, phv
Details

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