When on non continous mode and using Up-key to go a page up, put the previous page at the bottom and not at the top

svn path=/trunk/kdegraphics/kpdf/; revision=375288
This commit is contained in:
Albert Astals Cid 2005-01-03 19:48:53 +00:00
parent 208b6a5cf3
commit 47db6126c7

View file

@ -487,7 +487,10 @@ void PageView::keyPressEvent( QKeyEvent * e )
verticalScrollBar()->subtractPage();
}
else if ( d->vectorIndex > 0 )
{
d->document->setCurrentPage( d->items[ d->vectorIndex - 1 ]->pageNumber() );
verticalScrollBar()->setValue(verticalScrollBar()->maxValue());
}
break;
case Key_Down:
case Key_PageDown: