1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
This commit is contained in:
Lu Wang 2013-04-04 15:31:15 +08:00
parent 8a9d3225e5
commit 793c781e2b
2 changed files with 2 additions and 11 deletions

View File

@ -237,8 +237,6 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
* determine scale factors
*/
{
double zoom = 1.0;
vector<double> zoom_factors;
if(is_positive(param->zoom))
@ -256,14 +254,7 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
zoom_factors.push_back((param->fit_height) / preprocessor.get_max_height());
}
if(zoom_factors.empty())
{
zoom = 1.0;
}
else
{
zoom = *min_element(zoom_factors.begin(), zoom_factors.end());
}
double zoom = (zoom_factors.empty() ? 1.0 : (*min_element(zoom_factors.begin(), zoom_factors.end())));
text_scale_factor1 = max<double>(zoom, param->font_size_multiplier);
text_scale_factor2 = zoom / text_scale_factor1;

View File

@ -1,7 +1,7 @@
/*
* state.cc
*
* track current state
* track PDF states
*
* Copyright (C) 2012,2013 Lu Wang <coolwanglu@gmail.com>
*/