소스 검색

PixelPaint: Restore image size from snapshots

This will make undoing a resize or rotate operation actually restore the
size of the image as well.
Andreas Kling 2 년 전
부모
커밋
32b73dd4af
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Userland/Applications/PixelPaint/Image.cpp

+ 2 - 0
Userland/Applications/PixelPaint/Image.cpp

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