[poppler] poppler/Annot.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Sep 1 14:51:24 PDT 2008


 poppler/Annot.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit de822554acdb1b2bc9e70c0668c43a10c0ec129a
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Sep 1 23:50:37 2008 +0200

    Initialize widget to null before calling initialize not after :-(

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 7775f47..e4c394a 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -1806,8 +1806,8 @@ AnnotTextMarkup::~AnnotTextMarkup() {
 AnnotWidget::AnnotWidget(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj) :
     Annot(xrefA, dict, catalog, obj) {
   type = typeWidget;
-  initialize(xrefA, catalog, dict);
   widget = NULL;
+  initialize(xrefA, catalog, dict);
 }
 
 AnnotWidget::~AnnotWidget() {


More information about the poppler mailing list