diff options
author | art-snake <art-snake@yandex-team.ru> | 2016-10-20 13:29:45 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-20 13:29:45 -0700 |
commit | ef38283688c1ee7c08bcf4204cfb78e09c039782 (patch) | |
tree | e610f19e8b9a3a13b50a4f9a1b37ac33d1b21433 /BUILD.gn | |
parent | 7403f8a2a0d87179a1ccd57ceccd2d84fa59c319 (diff) | |
download | pdfium-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.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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", |