From 40d20ca58d3733b646268574e0b68b19565bd1d7 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 29 Jan 2011 15:38:18 +0000 Subject: [PATCH] in each page, add a pointer to the owner document svn path=/trunk/KDE/kdegraphics/okular/; revision=1217914 --- core/document.cpp | 4 ++++ core/page.cpp | 2 +- core/page_p.h | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) 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