mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix regression introduced on the set-grid-layout-cells fn
Incorrect data is used for calcultate the size
This commit is contained in:
@@ -489,7 +489,7 @@
|
||||
(defn set-grid-layout-cells
|
||||
[cells]
|
||||
(let [entries (vals cells)
|
||||
size (mem/get-alloc-size entries GRID-LAYOUT-CELL-U8-SIZE)
|
||||
size (mem/get-alloc-size cells GRID-LAYOUT-CELL-U8-SIZE)
|
||||
offset (mem/alloc size)
|
||||
heap (-> (mem/get-heap-u8)
|
||||
(mem/view offset size))]
|
||||
|
||||
@@ -385,6 +385,7 @@ impl GridData {
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: use transmute
|
||||
#[derive(Debug)]
|
||||
#[repr(C)]
|
||||
pub struct RawGridTrack {
|
||||
|
||||
Reference in New Issue
Block a user