Fix panic when resetting areas. Closes #3566
This commit is contained in:
parent
1571027556
commit
a0d092f38e
|
|
@ -727,7 +727,9 @@ impl Memory {
|
|||
/// Forget window positions, sizes etc.
|
||||
/// Can be used to auto-layout windows.
|
||||
pub fn reset_areas(&mut self) {
|
||||
self.areas = Default::default();
|
||||
for area in self.areas.values_mut() {
|
||||
*area = Default::default();
|
||||
}
|
||||
}
|
||||
|
||||
/// Obtain the previous rectangle of an area.
|
||||
|
|
|
|||
Loading…
Reference in New Issue