🐛 Fix stroke image rendering (#6189)

This commit is contained in:
Elena Torró 2025-04-01 09:55:19 +02:00 committed by GitHub
parent 76ffc2d268
commit 3d7479f9aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -116,8 +116,8 @@ impl Stroke {
pub fn delta(&self) -> f32 {
match self.kind {
StrokeKind::InnerStroke => 0.,
StrokeKind::CenterStroke => self.width / 2.,
StrokeKind::OuterStroke => self.width,
StrokeKind::CenterStroke => self.width,
StrokeKind::OuterStroke => self.width * 2.,
}
}