[poppler] 2 commits - poppler/Gfx.cc poppler/TextOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu Feb 18 15:17:00 PST 2010
poppler/Gfx.cc | 3 +++
poppler/TextOutputDev.cc | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 35015ed11090d67cab69443e607d4d80ca03c619
Author: Nils Höglund <nils.hoglund at gmail.com>
Date: Thu Feb 18 23:14:51 2010 +0000
Match the number of calls to beginMarkedContent and endMarkedContent
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index bc194af..9000237 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -31,6 +31,7 @@
// Copyright (C) 2009, 2010 Thomas Freitag <Thomas.Freitag at alfa.de>
// Copyright (C) 2009 William Bader <williambader at hotmail.com>
// Copyright (C) 2009, 2010 David Benjamin <davidben at mit.edu>
+// Copyright (C) 2010 Nils Höglund <nils.hoglund at gmail.com>
//
// 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
@@ -4562,6 +4563,8 @@ void Gfx::opBeginMarkedContent(Object args[], int numArgs) {
if(numArgs == 2 && args[1].isDict ()) {
out->beginMarkedContent(args[0].getName(),args[1].getDict());
+ } else if(numArgs == 1) {
+ out->beginMarkedContent(args[0].getName(),NULL);
}
}
commit ee265760e6ecec93fe26fb8e02848872555daefd
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu Feb 18 23:13:48 2010 +0000
make sure properties exists before using it
diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index 442ace2..3b16622 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -17,7 +17,7 @@
// Copyright (C) 2006 Jeff Muizelaar <jeff at infidigm.net>
// Copyright (C) 2007, 2008 Adrian Johnson <ajohnson at redneon.com>
// Copyright (C) 2008 Koji Otani <sho at bbr.jp>
-// Copyright (C) 2008 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2008, 2010 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2008 Pino Toscano <pino at kde.org>
// Copyright (C) 2008 Hib Eris <hib at hiberis.nl>
// Copyright (C) 2009 Ross Moore <ross at maths.mq.edu.au>
@@ -4548,7 +4548,7 @@ void ActualText::beginMC(Dict *properties) {
}
Object obj;
- if (properties->lookup("ActualText", &obj)) {
+ if (properties && properties->lookup("ActualText", &obj)) {
if (obj.isString()) {
actualText = obj.getString();
actualTextBMCLevel = 1;
More information about the poppler
mailing list