mirror of https://github.com/penpot/penpot.git
🐛 Fix regression introduced on the set-grid-layout-cells fn
Incorrect data is used for calcultate the size
This commit is contained in:
parent
f32b92a5b0
commit
6b6e80f4b8
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue