mirror of
https://github.com/typst/typst
synced 2025-07-26 22:07:54 +08:00
refactor: apply suggestion
Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
parent
d0028b0a10
commit
185a9d36f3
@ -486,10 +486,8 @@ impl Curve {
|
||||
cursor = *to;
|
||||
}
|
||||
CurveItem::Line(to) => {
|
||||
min = min.min(cursor);
|
||||
max = max.max(cursor);
|
||||
min = min.min(*to);
|
||||
max = max.max(*to);
|
||||
min = min.min(cursor).min(*to);
|
||||
max = max.max(cursor).max(*to);
|
||||
cursor = *to;
|
||||
}
|
||||
CurveItem::Cubic(c0, c1, end) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user