summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorart-snake <art-snake@yandex-team.ru>2016-10-20 13:29:45 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-20 13:29:45 -0700
commitef38283688c1ee7c08bcf4204cfb78e09c039782 (patch)
treee610f19e8b9a3a13b50a4f9a1b37ac33d1b21433 /BUILD.gn
parent7403f8a2a0d87179a1ccd57ceccd2d84fa59c319 (diff)
downloadpdfium-ef38283688c1ee7c08bcf4204cfb78e09c039782.tar.xz
Fix loading page using hint tables.chromium/2897
When linearized document have hint table, The FPDFAvail_IsPageAvail return true, but FPDF_LoadPage return nullptr, for non first pages. This happens, bacause document not use hint tables, to load page. To fix this, I force save the page's ObjNum in document. R=npm, dsinclair Review-Url: https://chromiumcodereview.appspot.com/2437773003
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn1
1 files changed, 1 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 1af2c28c55..c9f85fa0ed 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1634,6 +1634,7 @@ test("pdfium_unittests") {
"core/fpdfapi/page/fpdf_page_parser_old_unittest.cpp",
"core/fpdfapi/page/fpdf_page_parser_unittest.cpp",
"core/fpdfapi/parser/cpdf_array_unittest.cpp",
+ "core/fpdfapi/parser/cpdf_document_unittest.cpp",
"core/fpdfapi/parser/cpdf_object_unittest.cpp",
"core/fpdfapi/parser/cpdf_parser_unittest.cpp",
"core/fpdfapi/parser/cpdf_simple_parser_unittest.cpp",