Commit c313465c authored by Enrico Ros's avatar Enrico Ros

applying patch_083

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=425038
parent 5e8dc499
......@@ -907,10 +907,6 @@ void KPDFDocument::processLink( const KPDFLink * link )
const KPDFLinkGoto * go = static_cast< const KPDFLinkGoto * >( link );
d->nextDocumentViewport = go->destViewport();
// skip links that point to nowhere (broken ones)
if (d->nextDocumentViewport.pageNumber == -1)
return;
// Explanation of why d->nextDocumentViewport is needed:
// all openRelativeFile does is launch a signal telling we
// want to open another URL, the problem is that when the file is
......@@ -927,6 +923,10 @@ void KPDFDocument::processLink( const KPDFLink * link )
}
else
{
// skip local links that point to nowhere (broken ones)
if (d->nextDocumentViewport.pageNumber == -1)
return;
setViewport( d->nextDocumentViewport, -1, true );
d->nextDocumentViewport = DocumentViewport();
}
......
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