diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-06 11:58:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | db90b4554ec18e60c1435cc81d379a6afbd2a1fe (patch) | |
tree | de3e056e3ffe1260ff2e26fd2d162bc722f50eda /Userland/Applications/PixelPaint/Image.cpp | |
parent | 69c4614a9437b344cd6f157e0fb7150f3fbd4551 (diff) | |
download | serenity-db90b4554ec18e60c1435cc81d379a6afbd2a1fe.zip |
LibGfx: Use ErrorOr<T> for Bitmap::flipped()
Diffstat (limited to 'Userland/Applications/PixelPaint/Image.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Image.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/Image.cpp b/Userland/Applications/PixelPaint/Image.cpp index 6ab9081b5a..f2f3b55090 100644 --- a/Userland/Applications/PixelPaint/Image.cpp +++ b/Userland/Applications/PixelPaint/Image.cpp @@ -506,8 +506,7 @@ void Image::set_path(String path) void Image::flip(Gfx::Orientation orientation) { for (auto& layer : m_layers) { - auto flipped = layer.bitmap().flipped(orientation); - VERIFY(flipped); + auto flipped = layer.bitmap().flipped(orientation).release_value_but_fixme_should_propagate_errors(); layer.set_bitmap(*flipped); layer.did_modify_bitmap(rect()); } |