Commit 90bc2dad authored by Pino Toscano's avatar Pino Toscano

clear the visible rects when closing a document

svn path=/trunk/playground/graphics/okular/; revision=554546
parent cd81b54d
......@@ -358,6 +358,14 @@ void KPDFDocument::closeDocument()
delete *rIt;
d->searches.clear();
// clear the visible areas and notify the observers
QVector< VisiblePageRect * >::iterator vIt = page_rects.begin();
QVector< VisiblePageRect * >::iterator vEnd = page_rects.end();
for ( ; vIt != vEnd; ++vIt )
delete *vIt;
page_rects.clear();
foreachObserver( notifyVisibleRectsChanged() );
// reset internal variables
d->viewportHistory.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment