Merge pull request #6258 from penpot/elenatorro-10756-delete-last-shape

🐛 Remove children correctly
This commit is contained in:
Alejandro 2025-04-10 06:49:41 +02:00 committed by GitHub
commit 9b8c8c4971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 14 deletions

View file

@ -198,9 +198,8 @@
(when-not (empty? entries)
(let [id (first entries)]
(sr/heapu32-set-uuid id heap (mem/ptr8->ptr32 current-offset))
(recur (rest entries) (+ current-offset CHILD-ENTRY-SIZE)))))
(h/call wasm/internal-module "_set_children")))))
(recur (rest entries) (+ current-offset CHILD-ENTRY-SIZE)))))))
(h/call wasm/internal-module "_set_children")))
(defn- get-string-length [string] (+ (count string) 1))