mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 22:53:02 +00:00
🐛 Fix division by zero in bool operation
This commit is contained in:
@@ -150,6 +150,7 @@
|
||||
- Remove button after import process finish [Taiga #2215](https://tree.taiga.io/project/penpot/issue/2215)
|
||||
- Fix problem with styles in the viewer [Taiga #2467](https://tree.taiga.io/project/penpot/issue/2467)
|
||||
- Fix default state in viewer [Taiga #2465](https://tree.taiga.io/project/penpot/issue/2465)
|
||||
- Fix division by zero in bool operation [Taiga #2349](https://tree.taiga.io/project/penpot/issue/2349)
|
||||
|
||||
### :heart: Community contributions by (Thank you!)
|
||||
|
||||
|
||||
@@ -119,7 +119,9 @@
|
||||
;; normalize value
|
||||
d (mth/sqrt (+ (* x x) (* y y)))]
|
||||
|
||||
(gpt/point (/ x d) (/ y d))))
|
||||
(if (mth/almost-zero? d)
|
||||
(gpt/point 0 0)
|
||||
(gpt/point (/ x d) (/ y d)))))
|
||||
|
||||
(defn curve-windup
|
||||
[curve t]
|
||||
|
||||
Reference in New Issue
Block a user