fix(tiny-skia): correct stroke bounds calculation

This commit is contained in:
Thomas Gatzweiler 2025-04-01 13:29:33 +02:00
parent c99f4d08f0
commit a50a56a29d

View file

@ -538,10 +538,10 @@ impl Engine {
let bounds = path.bounds(); let bounds = path.bounds();
Rectangle { Rectangle {
x: bounds.x(), x: bounds.x() - stroke.width / 2.0,
y: bounds.y(), y: bounds.y() - stroke.width / 2.0,
width: bounds.width(), width: bounds.width() + stroke.width,
height: bounds.height(), height: bounds.height() + stroke.width,
} * transformation } * transformation
}; };