mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibGfx: Use ErrorOr<T> for Bitmap::rotated()
This commit is contained in:
parent
2da4cfcc80
commit
69c4614a94
5 changed files with 11 additions and 10 deletions
|
@ -518,8 +518,7 @@ void Image::flip(Gfx::Orientation orientation)
|
|||
void Image::rotate(Gfx::RotationDirection direction)
|
||||
{
|
||||
for (auto& layer : m_layers) {
|
||||
auto rotated = layer.bitmap().rotated(direction);
|
||||
VERIFY(rotated);
|
||||
auto rotated = layer.bitmap().rotated(direction).release_value_but_fixme_should_propagate_errors();
|
||||
layer.set_bitmap(*rotated);
|
||||
layer.did_modify_bitmap(rect());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue