[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.0/kdegraphics/okular/core
From:       Pino Toscano <pino () kde ! org>
Date:       2008-04-19 20:17:42
Message-ID: 1208636262.194622.32121.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 798891 by pino:

backport: clear TOC and document info when closing a textdocument-based document


 M  +3 -0      textdocumentgenerator.cpp  


--- branches/KDE/4.0/kdegraphics/okular/core/textdocumentgenerator.cpp #798890:798891
@@ -275,6 +275,9 @@
     d->mLinkPositions.clear();
     d->mLinkInfos.clear();
     d->mAnnotationInfos.clear();
+    // do not use clear() for the following two, otherwise they change type
+    d->mDocumentInfo = Okular::DocumentInfo();
+    d->mDocumentSynopsis = Okular::DocumentSynopsis();
 
     return true;
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic