From 32b73dd4aff4bfa5fd63e16a60fae1130c34a26c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Aug 2022 19:04:48 +0200 Subject: [PATCH] PixelPaint: Restore image size from snapshots This will make undoing a resize or rotate operation actually restore the size of the image as well. --- Userland/Applications/PixelPaint/Image.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Applications/PixelPaint/Image.cpp b/Userland/Applications/PixelPaint/Image.cpp index a6af48188e..5832fefdd7 100644 --- a/Userland/Applications/PixelPaint/Image.cpp +++ b/Userland/Applications/PixelPaint/Image.cpp @@ -265,6 +265,8 @@ ErrorOr 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 {}; }