Commit 15511213 authored by Albert Astals Cid's avatar Albert Astals Cid

qt4/src/poppler-private.h: Protect us against a link not having

        a destination or a namedDestination
parent c902a3a2
2006-04-23 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-private.h: Protect us against a link not having
a destination or a namedDestination
2006-04-18 Albert Astals Cid <aacid@kde.org>
* goo/GooVector.h: Fix typo that was preventing build with MSVC8
......
......@@ -127,7 +127,7 @@ namespace Poppler {
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() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment