diff --git a/core/document.cpp b/core/document.cpp index 960376210..19293140a 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -4466,7 +4466,7 @@ bool Document::swapBackingFileArchive( const QString &newFileName, const QUrl & qCDebug(OkularCoreDebug) << "Swapping backing file to" << tempFileName; QVector< Page * > newPagesVector; - if (genIt->generator->swapBackingFile( newFileName, newPagesVector )) + if (genIt->generator->swapBackingFile( tempFileName, newPagesVector )) { // TODO Do the same we do in the other swapBackingFile call