diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-24 19:04:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-24 19:04:03 +0800 |
| commit | ce7222fbde5b260508e350afd5f17b5e635ede76 (patch) | |
| tree | ed601ec0e5711e450116a63c15fd4e9fb7482f68 /systems/sheet/src/sheet.rs | |
| parent | d319e7ea3b50875794a105435d6da5a8c653baed (diff) | |
Fix missing mapping insertions after swapping values
Diffstat (limited to 'systems/sheet/src/sheet.rs')
| -rw-r--r-- | systems/sheet/src/sheet.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/systems/sheet/src/sheet.rs b/systems/sheet/src/sheet.rs index 44c2878..e0275cb 100644 --- a/systems/sheet/src/sheet.rs +++ b/systems/sheet/src/sheet.rs @@ -425,6 +425,8 @@ impl Sheet { let val_b = b.value().clone(); a.set_value(val_b); b.set_value(val_a); + self.data.mappings.insert(a); + self.data.mappings.insert(b); } SheetEditItem::EraseMapping { node } => { if !self.data.mappings.remove(&node) { |
