summaryrefslogtreecommitdiff
path: root/core/fxcodec/lgif/cgifcontext.cpp
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2017-09-27 11:50:34 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 16:10:07 +0000
commitd6a1595e0bd8f2d0677e2e59e9e0ac6678aaa0d1 (patch)
treebaa72fae7e30684fa5aad76370ab4122ab26cede /core/fxcodec/lgif/cgifcontext.cpp
parente950b119ac10aa8fcaf3b3e06ea0e8f6d5f48ee0 (diff)
downloadpdfium-d6a1595e0bd8f2d0677e2e59e9e0ac6678aaa0d1.tar.xz
Add in missing ! to conditional
This was causing us to use the local palette values when they didn't exist, instead of the global palette values. BUG=chromium:769292 Change-Id: I02d19cbcf0cf9e362e123fc7648d8f47991b8155 Reviewed-on: https://pdfium-review.googlesource.com/14910 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/lgif/cgifcontext.cpp')
-rw-r--r--core/fxcodec/lgif/cgifcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/lgif/cgifcontext.cpp b/core/fxcodec/lgif/cgifcontext.cpp
index b1de89f2b6..21e896405f 100644
--- a/core/fxcodec/lgif/cgifcontext.cpp
+++ b/core/fxcodec/lgif/cgifcontext.cpp
@@ -286,7 +286,7 @@ GifDecodeStatus CGifContext::LoadFrame(int32_t frame_num) {
}
if (!m_ImgDecoder.get())
m_ImgDecoder =
- CFX_LZWDecoder::Create(gif_image_ptr->m_LocalPalettes.empty()
+ CFX_LZWDecoder::Create(!gif_image_ptr->m_LocalPalettes.empty()
? gif_image_ptr->local_pallette_exp
: global_pal_exp,
gif_image_ptr->image_code_exp);