mirror of
https://github.com/penpot/penpot.git
synced 2025-05-06 10:45:54 +02:00
🐛 Fix crash when pressing Shift 1 in an empty file
This commit is contained in:
parent
1321bdeac5
commit
c4fb826d89
2 changed files with 2 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
|
- Fix crash when pressing Shift+1 on empty file [#1435](https://github.com/penpot/penpot/issues/1435)
|
||||||
- Fix masked group resize strange behavior [Taiga #2317](https://tree.taiga.io/project/penpot/issue/2317).
|
- Fix masked group resize strange behavior [Taiga #2317](https://tree.taiga.io/project/penpot/issue/2317).
|
||||||
- Fix problems when exporting all artboards [Taiga #2234](https://tree.taiga.io/project/penpot/issue/2234).
|
- Fix problems when exporting all artboards [Taiga #2234](https://tree.taiga.io/project/penpot/issue/2234).
|
||||||
- Fix problems with team management [#1353](https://github.com/penpot/penpot/issues/1353)
|
- Fix problems with team management [#1353](https://github.com/penpot/penpot/issues/1353)
|
||||||
|
|
|
@ -635,9 +635,7 @@
|
||||||
objects (wsh/lookup-page-objects state page-id)
|
objects (wsh/lookup-page-objects state page-id)
|
||||||
shapes (cp/select-toplevel-shapes objects {:include-frames? true})
|
shapes (cp/select-toplevel-shapes objects {:include-frames? true})
|
||||||
srect (gsh/selection-rect shapes)]
|
srect (gsh/selection-rect shapes)]
|
||||||
|
(if (= 0 (count shapes))
|
||||||
(if (or (mth/nan? (:width srect))
|
|
||||||
(mth/nan? (:height srect)))
|
|
||||||
state
|
state
|
||||||
(update state :workspace-local
|
(update state :workspace-local
|
||||||
(fn [{:keys [vport] :as local}]
|
(fn [{:keys [vport] :as local}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue