From 5c42c8e9b78082319ad57f143ad03037d447aa36 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 25 Apr 2017 16:42:59 -0700 Subject: Fix botched negation in cpdf_imageobject.cpp Regressed at https://pdfium.googlesource.com/pdfium/+/7d4f6a89d7e2c5d13b7d630d6348950044a5465e TBR=thestig@chromium.org Change-Id: I25b8d6b4847090af18c9f36e4cea07a1eeb2a99a Reviewed-on: https://pdfium-review.googlesource.com/4500 Reviewed-by: Tom Sepez Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- core/fpdfapi/page/cpdf_imageobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/fpdfapi/page/cpdf_imageobject.cpp b/core/fpdfapi/page/cpdf_imageobject.cpp index 1c2cc6ba7e..8732c00954 100644 --- a/core/fpdfapi/page/cpdf_imageobject.cpp +++ b/core/fpdfapi/page/cpdf_imageobject.cpp @@ -61,7 +61,7 @@ void CPDF_ImageObject::MaybePurgeCache() { return; CPDF_DocPageData* pPageData = pDocument->GetPageData(); - if (pPageData) + if (!pPageData) return; CPDF_Stream* pStream = m_pImage->GetStream(); -- cgit v1.2.3