mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-21 18:42:53 +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:
parent
d5979516b4
commit
32b73dd4af
Notes:
sideshowbarker
2024-07-17 08:03:25 +09:00
Author: https://github.com/awesomekling
Commit: 32b73dd4af
1 changed files with 2 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue