mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 23:19:28 +00:00
🐛 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
|
(defn set-grid-layout-cells
|
||||||
[cells]
|
[cells]
|
||||||
(let [entries (vals 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)
|
offset (mem/alloc size)
|
||||||
heap (-> (mem/get-heap-u8)
|
heap (-> (mem/get-heap-u8)
|
||||||
(mem/view offset size))]
|
(mem/view offset size))]
|
||||||
|
|||||||
@ -385,6 +385,7 @@ impl GridData {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: use transmute
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct RawGridTrack {
|
pub struct RawGridTrack {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user