Commit d02c86fe authored by Michel Ludwig's avatar Michel Ludwig
Browse files

Also add an update call to 'Part::showSourceLocation'.

This handles the case when the source location changes without a need for the
document to be scrolled.
Better call 'viewport()->update()' in 'Part::setShowSourceLocationsGraphically'.
parent 5b7c6b81
......@@ -842,6 +842,7 @@ void Part::showSourceLocation(const QString& fileName, int line, int column, boo
if( showGraphically )
{
m_pageView->setLastSourceLocationViewport( m_document->viewport() );
m_pageView->viewport()->update();
}
}
......@@ -881,7 +882,7 @@ void Part::setShowSourceLocationsGraphically(bool show)
return;
}
Okular::Settings::setShowSourceLocationsGraphically( show );
m_pageView->update();
m_pageView->viewport()->update();
}
void Part::slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled)
......
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