diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-06 11:56:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | 69c4614a9437b344cd6f157e0fb7150f3fbd4551 (patch) | |
tree | 80855777e789dfbb041522277ff274637ba299cf /Userland/Applications/ImageViewer/ViewWidget.cpp | |
parent | 2da4cfcc80b5fcd322c5194a829b76571616e5b4 (diff) | |
download | serenity-69c4614a9437b344cd6f157e0fb7150f3fbd4551.zip |
LibGfx: Use ErrorOr<T> for Bitmap::rotated()
Diffstat (limited to 'Userland/Applications/ImageViewer/ViewWidget.cpp')
-rw-r--r-- | Userland/Applications/ImageViewer/ViewWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/ImageViewer/ViewWidget.cpp b/Userland/Applications/ImageViewer/ViewWidget.cpp index 67d82fc646..833241a5e9 100644 --- a/Userland/Applications/ImageViewer/ViewWidget.cpp +++ b/Userland/Applications/ImageViewer/ViewWidget.cpp @@ -55,7 +55,7 @@ void ViewWidget::flip(Gfx::Orientation orientation) void ViewWidget::rotate(Gfx::RotationDirection rotation_direction) { - m_bitmap = m_bitmap->rotated(rotation_direction); + m_bitmap = m_bitmap->rotated(rotation_direction).release_value_but_fixme_should_propagate_errors(); set_scale(m_scale); resize_window(); |