[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Dec 13 09:43:51 UTC 2017


 poppler/Gfx.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 65dcc0b9c16c80e6718ada060d7ac0e2c0e39abf
Author: Albert Astals Cid <albert.astals.cid at kdab.com>
Date:   Wed Dec 13 10:40:50 2017 +0100

    Reset lastAbortCheck on updateLevel reset
    
    Otherwise we get to a point that the
      if (updateLevel - lastAbortCheck > 10) {
    branch is never executed because updateLevel got to 20000 but lastAbortCheck is still at the last value

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 531acbd4..fd40dd97 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -38,6 +38,7 @@
 // Copyright (C) 2012, 2013 Fabio D'Urso <fabiodurso at hotmail.it>
 // Copyright (C) 2012 Lu Wang <coolwanglu at gmail.com>
 // Copyright (C) 2014 Jason Crain <jason at aquaticape.us>
+// Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group company, <info at kdab.com>. Work sponsored by the LiMux project of the city of Munich
 //
 // 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
@@ -764,6 +765,7 @@ void Gfx::go(GBool topLevel) {
       if (++updateLevel >= 20000) {
 	out->dump();
 	updateLevel = 0;
+	lastAbortCheck = 0;
       }
 
       // did the command throw an exception


More information about the poppler mailing list