Commit 59dd0476 authored by Miklós Máté's avatar Miklós Máté Committed by Albert Astals Cid

Set viewport only once

REVIEW: 129287
parent d3b5e13d
......@@ -737,7 +737,6 @@ void ThumbnailListPrivate::mouseReleaseEvent( QMouseEvent * e )
// jump center of viewport to cursor if it wasn't dragged
if ( m_mouseGrabPos.isNull() )
{
m_document->setViewportPage( item->pageNumber() );
r = item->visibleRect();
Okular::DocumentViewport vp = Okular::DocumentViewport( item->pageNumber() );
vp.rePos.normalizedX = double(p.x()) / double(item->rect().width());
......
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