summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-10-26 08:45:31 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-26 08:45:31 -0700
commit16b703cb504abedbae3e14f69c1ae355363a7ad8 (patch)
treee3561dae57648b23312c06991d96795ef0524b6c /core/fpdfapi/page
parent04c1009af887eb5d3a183dd26421f644f63d8b77 (diff)
downloadpdfium-16b703cb504abedbae3e14f69c1ae355363a7ad8.tar.xz
Fix some bool/int mismatches.
Found by winxfa bot when fx_bool defined to bool. Review-Url: https://codereview.chromium.org/2449293002
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r--core/fpdfapi/page/fpdf_page_parser_old.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/fpdf_page_parser_old.cpp b/core/fpdfapi/page/fpdf_page_parser_old.cpp
index 8c69903b2c..ccee12dd03 100644
--- a/core/fpdfapi/page/fpdf_page_parser_old.cpp
+++ b/core/fpdfapi/page/fpdf_page_parser_old.cpp
@@ -107,7 +107,7 @@ uint32_t PDF_DecodeInlineStream(const uint8_t* src_buf,
CCodec_ScanlineDecoder* pDecoder =
CPDF_ModuleMgr::Get()->GetJpegModule()->CreateDecoder(
src_buf, limit, width, height, 0,
- pParam ? pParam->GetIntegerFor("ColorTransform", 1) : 1);
+ !pParam || pParam->GetIntegerFor("ColorTransform", 1));
return DecodeAllScanlines(pDecoder, dest_buf, dest_size);
}
if (decoder == "RunLengthDecode" || decoder == "RL") {