Commit 1da064d7 authored by Albert Astals Cid's avatar Albert Astals Cid

* qt4/src/poppler-page.cc: PA is optional, H is a name not a string

parent 29366d8e
2006-09-30 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-page.cc: PA is optional, H is a name not a string
2006-09-25 Albert Astals Cid <aacid@kde.org>
* glib/Makefile.am
......
......@@ -804,7 +804,7 @@ QList<Annotation*> Page::annotations() const
// -> hlMode
QString hlModeString;
XPDFReader::lookupString( annotDict, "H", hlModeString );
XPDFReader::lookupName( annotDict, "H", hlModeString );
if ( hlModeString == "N" )
l->linkHLMode = LinkAnnotation::None;
else if ( hlModeString == "I" )
......@@ -835,13 +835,16 @@ QList<Annotation*> Page::annotations() const
// reading link action
Object objPA;
annotDict->lookup( "PA", &objPA );
::LinkAction * a = ::LinkAction::parseAction( &objPA, m_page->parentDoc->m_doc->doc.getCatalog()->getBaseURI() );
Link * popplerLink = m_page->convertLinkActionToLink( a, QRectF(), m_page->parentDoc->m_doc );
if ( popplerLink )
if (!objPA.isNull())
{
l->linkDestination = popplerLink;
::LinkAction * a = ::LinkAction::parseAction( &objPA, m_page->parentDoc->m_doc->doc.getCatalog()->getBaseURI() );
Link * popplerLink = m_page->convertLinkActionToLink( a, QRectF(), m_page->parentDoc->m_doc );
if ( popplerLink )
{
l->linkDestination = popplerLink;
}
objPA.free();
}
objPA.free();
}
else
{
......
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