diff --git a/core/document.cpp b/core/document.cpp index 12c26d55a..f8db7ad94 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -1651,6 +1651,10 @@ bool Document::openDocument( const QString & docFile, const KUrl& url, const KMi } d->m_generatorName = offer->name(); + foreach ( Page * p, d->m_pagesVector ) + { + p->d->m_doc = d; + } // 2. load Additional Data (our bookmarks and metadata) about the document if ( d->m_archiveData ) diff --git a/core/page.cpp b/core/page.cpp index bd279391e..eaab64ee5 100644 --- a/core/page.cpp +++ b/core/page.cpp @@ -58,7 +58,7 @@ static void deleteObjectRects( QLinkedList< ObjectRect * >& rects, const QSet