From 1bdd3cd4045060676ee73e850dd649df8a834739 Mon Sep 17 00:00:00 2001 From: Stephen Gaito Date: Fri, 27 Sep 2019 13:25:13 +0100 Subject: [PATCH] initial update for poppler-0.81.0 --- 3rdparty/poppler/git/CairoOutputDev.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/3rdparty/poppler/git/CairoOutputDev.cc b/3rdparty/poppler/git/CairoOutputDev.cc index aa4f1cc..846c81a 100644 --- a/3rdparty/poppler/git/CairoOutputDev.cc +++ b/3rdparty/poppler/git/CairoOutputDev.cc @@ -31,6 +31,7 @@ // Copyright (C) 2015 Suzuki Toshiya // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, . Work sponsored by the LiMux project of the city of Munich // Copyright (C) 2018 Adam Reichold +// Copyright (C) 2019 Marek Kasik // // 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 @@ -3134,6 +3135,13 @@ public: scaledWidth = MAX_PRINT_IMAGE_SIZE * (double)width/height; } needsCustomDownscaling = true; + + if (scaledWidth == 0) { + scaledWidth = 1; + } + if (scaledHeight == 0) { + scaledHeight = 1; + } } else { needsCustomDownscaling = false; }