mirror of
https://github.com/typst/typst
synced 2025-07-27 06:17:53 +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;
|
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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user