Commit ba765a3b authored by Pino Toscano's avatar Pino Toscano

give the right parent page to the annotations also when restoring them from xml

svn path=/trunk/KDE/kdegraphics/okular/; revision=689162
parent 0e7aeb2b
......@@ -28,6 +28,7 @@ class AnnotationObjectRect;
class AnnotationPrivate;
class Document;
class Page;
class PagePrivate;
class TextAnnotationPrivate;
class LineAnnotationPrivate;
class GeomAnnotationPrivate;
......@@ -84,6 +85,7 @@ class OKULAR_EXPORT Annotation
friend class AnnotationObjectRect;
friend class Document;
friend class Page;
friend class PagePrivate;
public:
/**
......
......@@ -677,6 +677,7 @@ void PagePrivate::restoreLocalContents( const QDomNode & pageNode )
// append annotation to the list or show warning
if ( annotation )
{
annotation->d_ptr->m_page = this;
m_page->m_annotations.append( annotation );
m_page->m_rects.append( new AnnotationObjectRect( annotation ) );
int pos = annotation->uniqueName().lastIndexOf("-");
......
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