diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-01 00:13:17 +0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-01 00:13:17 +0800 |
commit | 8f6f036678515a203051bb83c975472ed26b3203 (patch) | |
tree | 3dc0c4d5fa2de92da00b0521438013eb0271f88b | |
parent | e67f618a7c31c1746cba590482e59d5a8849ff73 (diff) | |
download | pdfium-8f6f036678515a203051bb83c975472ed26b3203.tar.xz |
Revert "Fix a corpus test failure introduced by commit 84f6a56"
This reverts commit e67f618a7c31c1746cba590482e59d5a8849ff73.
BUG=pdfium:336
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1553893002 .
-rw-r--r-- | samples/pdfium_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc index 3bc279842d..89430f6dfd 100644 --- a/samples/pdfium_test.cc +++ b/samples/pdfium_test.cc @@ -338,15 +338,17 @@ bool RenderPage(const std::string& name, const int page_index, const Options& options) { FPDF_PAGE page = FPDF_LoadPage(doc, page_index); - if (!page) + if (!page) { return false; + } FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); FORM_OnAfterLoadPage(page, form); FORM_DoPageAAction(page, form, FPDFPAGE_AACTION_OPEN); double scale = 1.0; - if (!options.scale_factor_as_string.empty()) + if (!options.scale_factor_as_string.empty()) { std::stringstream(options.scale_factor_as_string) >> scale; + } int width = static_cast<int>(FPDF_GetPageWidth(page) * scale); int height = static_cast<int>(FPDF_GetPageHeight(page) * scale); int alpha = FPDFPage_HasTransparency(page) ? 1 : 0; |