Fixed transform panic (#2435)

This commit is contained in:
Sébastien d'Herbais de Thun 2023-10-19 09:57:03 +02:00 committed by GitHub
parent 838b56e72b
commit 56510d9df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ impl Transform {
} }
let det = self.sx * self.sy - self.kx * self.ky; let det = self.sx * self.sy - self.kx * self.ky;
if det.get() < 1e-12 { if det.get().abs() < 1e-12 {
return None; return None;
} }