1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

initial update for poppler-0.81.0

This commit is contained in:
Stephen Gaito 2019-09-27 13:25:13 +01:00
parent f8ad1008a8
commit 1bdd3cd404

View File

@ -31,6 +31,7 @@
// Copyright (C) 2015 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp> // Copyright (C) 2015 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
// Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by the LiMux project of the city of Munich // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by the LiMux project of the city of Munich
// Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de> // Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
// Copyright (C) 2019 Marek Kasik <mkasik@redhat.com>
// //
// To see a description of the changes please see the Changelog file that // To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git // came with your tarball or type make ChangeLog if you are building from git
@ -3134,6 +3135,13 @@ public:
scaledWidth = MAX_PRINT_IMAGE_SIZE * (double)width/height; scaledWidth = MAX_PRINT_IMAGE_SIZE * (double)width/height;
} }
needsCustomDownscaling = true; needsCustomDownscaling = true;
if (scaledWidth == 0) {
scaledWidth = 1;
}
if (scaledHeight == 0) {
scaledHeight = 1;
}
} else { } else {
needsCustomDownscaling = false; needsCustomDownscaling = false;
} }