diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/PNGLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/PNGLoader.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGfx/PNGLoader.cpp b/Userland/Libraries/LibGfx/PNGLoader.cpp index 4129cec13c..af507efa35 100644 --- a/Userland/Libraries/LibGfx/PNGLoader.cpp +++ b/Userland/Libraries/LibGfx/PNGLoader.cpp @@ -1013,10 +1013,9 @@ size_t PNGImageDecoderPlugin::frame_count() ImageFrameDescriptor PNGImageDecoderPlugin::frame(size_t i) { - if (i > 0) { - return { bitmap(), 0 }; - } - return {}; + if (i > 0) + return {}; + return { bitmap(), 0 }; } } |