mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-28 19:28:38 +00:00
fixes problem with bookmark reloading
svn path=/trunk/KDE/kdegraphics/kdvi/; revision=430503
This commit is contained in:
parent
ff7f7dd947
commit
5f068f5473
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue