Updated named trees in catalog to fulfill PDF 2.0 specification

This commit is contained in:
Jakub Melka
2020-08-01 18:24:33 +02:00
parent 534ff8e814
commit fa30ed37bb
4 changed files with 175 additions and 13 deletions

View File

@ -405,7 +405,7 @@ void PDFViewerMainWindow::onActionTriggered(const pdf::PDFAction* action)
pdf::PDFDestination destination = typedAction->getDestination();
if (destination.getDestinationType() == pdf::DestinationType::Named)
{
if (const pdf::PDFDestination* targetDestination = m_pdfDocument->getCatalog()->getDestination(destination.getName()))
if (const pdf::PDFDestination* targetDestination = m_pdfDocument->getCatalog()->getNamedDestination(destination.getName()))
{
destination = *targetDestination;
}