PixelPaint: Restore image size from snapshots

This will make undoing a resize or rotate operation actually restore the
size of the image as well.
This commit is contained in:
Andreas Kling 2022-08-22 19:04:48 +02:00
parent d5979516b4
commit 32b73dd4af
Notes: sideshowbarker 2024-07-17 08:03:25 +09:00

View file

@ -265,6 +265,8 @@ ErrorOr<void> Image::restore_snapshot(Image const& snapshot)
if (!layer_selected)
select_layer(&layer(0));
m_size = snapshot.size();
did_change_rect();
did_modify_layer_stack();
return {};
}