mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix drop index on flex layout wasm
This commit is contained in:
parent
403d92838a
commit
52a4fc6030
@ -985,7 +985,7 @@ pub fn modified_children_ids(
|
||||
for st in structure {
|
||||
match st.entry_type {
|
||||
StructureEntryType::AddChild => {
|
||||
result.insert(st.index as usize, st.id);
|
||||
result.insert(result.len() - st.index as usize, st.id);
|
||||
}
|
||||
StructureEntryType::RemoveChild => {
|
||||
to_remove.insert(&st.id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user