LibGfx/ICO: Fix an erroneous condition
This is a remnant of the conversion to `ErrorOr` done in 492d5d7c
.
This commit is contained in:
parent
91e1a77854
commit
fd765d2031
Notes:
sideshowbarker
2024-07-17 17:38:29 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/fd765d2031 Pull-request: https://github.com/SerenityOS/serenity/pull/19874 Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue