mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibGfx/ICO: Fix an erroneous condition
This is a remnant of the conversion to `ErrorOr` done in 492d5d7c.
This commit is contained in:
committed by
Linus Groh
parent
91e1a77854
commit
fd765d2031
@@ -205,7 +205,7 @@ IntSize ICOImageDecoderPlugin::size()
|
||||
}
|
||||
|
||||
if (m_context->state < ICOLoadingContext::State::DirectoryDecoded) {
|
||||
if (!load_ico_directory(*m_context).is_error()) {
|
||||
if (load_ico_directory(*m_context).is_error()) {
|
||||
m_context->state = ICOLoadingContext::State::Error;
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user