From d6a1595e0bd8f2d0677e2e59e9e0ac6678aaa0d1 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 27 Sep 2017 11:50:34 -0400 Subject: 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 Commit-Queue: Ryan Harrison --- core/fxcodec/lgif/cgifcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fxcodec/lgif') 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); -- cgit v1.2.3