Skip to content

Fix Label having non-integer sizes

When using a non-integer baseLine, the height can be non-integer, resulting in non-exact pixel alignments which generate artifacts on the screen.

This happened in Kickoff's LeaveView in Plasma 5.18 (currently used in openSUSE Leap 15.3) where the focus outline was painted with a different width in the top and bottom borders due to this pixel misalignment.

This appeared only in Leap 15.3 and not in 15.2 even if they use the same Plasma version because in Leap 15.3 KF5 was upgraded to 5.76 which includes commit 5ca28a12 so the Heading object in Kickoff now uses the Label from PC3 and while PC2's Label already rounded its height, in PC3 it didn't.

Merge request reports