1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

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

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 {};
}