[poppler] poppler/qt4/src: poppler-private.h,1.6,1.7

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Apr 23 08:50:54 PDT 2006


Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv24923/qt4/src

Modified Files:
	poppler-private.h 
Log Message:
qt4/src/poppler-private.h: Protect us against a link not having
        a destination or a namedDestination


Index: poppler-private.h
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-private.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- poppler-private.h	2 Apr 2006 18:07:59 -0000	1.6
+++ poppler-private.h	23 Apr 2006 15:50:52 -0000	1.7
@@ -127,7 +127,7 @@
 					QString aux = unicodeToQString( s->unicode(), s->getLength() );
 					item.setAttribute( "DestinationName", aux );
 				}
-				else if ( destination->isOk() )
+				else if ( destination && destination->isOk() )
 				{
 					LinkDestinationData ldd(destination, &doc);
 					item.setAttribute( "Destination", LinkDestination(ldd).toString() );



More information about the poppler mailing list