mirror of
https://github.com/typst/typst
synced 2025-05-24 14:05:27 +08:00
Fixed transform panic (#2435)
This commit is contained in:
parent
838b56e72b
commit
56510d9df0
@ -97,7 +97,7 @@ impl Transform {
|
||||
}
|
||||
|
||||
let det = self.sx * self.sy - self.kx * self.ky;
|
||||
if det.get() < 1e-12 {
|
||||
if det.get().abs() < 1e-12 {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user