refactor: apply suggestion

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Tobias Schmitz 2025-07-23 16:12:54 +02:00 committed by GitHub
parent d0028b0a10
commit 185a9d36f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -486,10 +486,8 @@ impl Curve {
cursor = *to; cursor = *to;
} }
CurveItem::Line(to) => { CurveItem::Line(to) => {
min = min.min(cursor); min = min.min(cursor).min(*to);
max = max.max(cursor); max = max.max(cursor).max(*to);
min = min.min(*to);
max = max.max(*to);
cursor = *to; cursor = *to;
} }
CurveItem::Cubic(c0, c1, end) => { CurveItem::Cubic(c0, c1, end) => {