summaryrefslogtreecommitdiff
path: root/qt4/src
diff options
context:
space:
mode:
authorFabio D'Urso <fabiodurso@hotmail.it>2012-05-21 18:16:06 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2012-05-24 19:49:02 +0200
commitba6406222f828e354323223fc4bdb01c1726fb49 (patch)
tree9727d3cbec5b7bfed49434a27cb280102d868bfa /qt4/src
parentb47d38e2ccd8563394df89765e277bde95730052 (diff)
Added Annot::removeReferencedObjects + Always set annotations' page field
- Now Page::removeAnnot calls Annot::removeReferencedObjects, which takes care of removing referenced objects (such as the annot popup and the appearance streams). - Previously, Annot's page field was set only if the annotation dictionary contained /P
Diffstat (limited to 'qt4/src')
-rw-r--r--qt4/src/poppler-annotation.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/qt4/src/poppler-annotation.cc b/qt4/src/poppler-annotation.cc
index 4d7cd847..59db52d6 100644
--- a/qt4/src/poppler-annotation.cc
+++ b/qt4/src/poppler-annotation.cc
@@ -510,14 +510,6 @@ void AnnotationPrivate::removeAnnotationFromPage(::Page *pdfPage, const Annotati
return;
}
- // Remove popup window
- AnnotMarkup *markupann = dynamic_cast<AnnotMarkup*>(ann->d_ptr->pdfAnnot);
- if (markupann && markupann->getPopup())
- pdfPage->removeAnnot(markupann->getPopup());
-
- // Remove appearance streams (if any)
- ann->d_ptr->pdfAnnot->invalidateAppearance();
-
// Remove annotation
pdfPage->removeAnnot(ann->d_ptr->pdfAnnot);