fixes problem with bookmark reloading

svn path=/trunk/KDE/kdegraphics/kdvi/; revision=430503
This commit is contained in:
Stefan Kebekus 2005-07-01 16:06:49 +00:00
parent ff7f7dd947
commit 5f068f5473

View file

@ -499,6 +499,8 @@ bool dviRenderer::setFile(const QString &fname)
// anchors in the document. So declare the existing lists empty.
anchorList.clear();
sourceHyperLinkAnchors.clear();
bookmarks.clear();
prebookmarks.clear();
if (dviFile->page_offset.isEmpty() == true) {
mutex.unlock();
@ -548,6 +550,7 @@ bool dviRenderer::setFile(const QString &fname)
// Generate the list of bookmarks
bookmarks.clear();
QPtrStack<Bookmark> stack;
stack.setAutoDelete (false);
QValueVector<PreBookmark>::iterator it;