[poppler] Branch 'poppler-0.16' - utils/HtmlOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Jun 8 15:36:58 PDT 2011


 utils/HtmlOutputDev.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d8cf657d597289e5d0395562ef313f8de7a7b606
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jun 8 23:36:14 2011 +0100

    Do not crash if link does not have an action
    (cherry picked from commit 147ae4bf76a85768c9ed729ca10ee3dae93b8876)

diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc
index ede5700..f897572 100644
--- a/utils/HtmlOutputDev.cc
+++ b/utils/HtmlOutputDev.cc
@@ -1413,6 +1413,8 @@ void HtmlOutputDev::doProcessLink(Link* link){
 
 GooString* HtmlOutputDev::getLinkDest(Link *link,Catalog* catalog){
   char *p;
+  if (!link->getAction())
+    return new GooString();
   switch(link->getAction()->getKind()) 
   {
       case actionGoTo:


More information about the poppler mailing list