mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
LibGfx: Use ErrorOr<T> for Bitmap::flipped()
This commit is contained in:
parent
69c4614a94
commit
db90b4554e
4 changed files with 9 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue