summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp')
-rw-r--r--Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp
index 2ee82006b8..c602967b83 100644
--- a/Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp
+++ b/Userland/Libraries/LibGfx/ImageFormats/PGMLoader.cpp
@@ -39,7 +39,7 @@ bool read_image_data(PGMLoadingContext& context, Streamer& streamer)
break;
auto value = number_or_error.value();
- if (!read_whitespace(context, streamer))
+ if (read_whitespace(context, streamer).is_error())
break;
color_data.append({ (u8)value, (u8)value, (u8)value });