diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-11-22 12:12:58 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-04 20:03:58 +0100 |
commit | 4af3ad5dfe1b51edfb2604dc5f92312570f7affc (patch) | |
tree | 638868efc8a216a2824203118cd79c15643b260f | |
parent | ff66da9af457766672a3d9a7d96121d287fb8929 (diff) | |
download | UXP-4af3ad5dfe1b51edfb2604dc5f92312570f7affc.tar UXP-4af3ad5dfe1b51edfb2604dc5f92312570f7affc.tar.gz UXP-4af3ad5dfe1b51edfb2604dc5f92312570f7affc.tar.lz UXP-4af3ad5dfe1b51edfb2604dc5f92312570f7affc.tar.xz UXP-4af3ad5dfe1b51edfb2604dc5f92312570f7affc.zip |
Fix debug assertion.
See: https://github.com/MoonchildProductions/UXP/commit/622098073e132995994fac4d61e3629d08ee1801#commitcomment-31390051
-rw-r--r-- | image/Decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/image/Decoder.cpp b/image/Decoder.cpp index a6fd67c3f..5ff8c72b5 100644 --- a/image/Decoder.cpp +++ b/image/Decoder.cpp @@ -295,7 +295,7 @@ Decoder::AllocateFrame(const gfx::IntSize& aOutputSize, // We should now be on |aFrameNum|. (Note that we're comparing the frame // number, which is zero-based, with the frame count, which is one-based.) - MOZ_ASSERT(aAnimParams, aAnimParams->mFrameNum + 1 == mFrameCount); + MOZ_ASSERT_IF(aAnimParams, aAnimParams->mFrameNum + 1 == mFrameCount); // If we're past the first frame, PostIsAnimated() should've been called. MOZ_ASSERT_IF(mFrameCount > 1, HasAnimation()); |