summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 89430f6dfd..3bc279842d 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -338,17 +338,15 @@ 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;