mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix division by zero in bool operation
This commit is contained in:
parent
a8249b73b6
commit
50fd44d3f2
2 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue