Commit 31d1b505 authored by Scott Wheeler's avatar Scott Wheeler

roundf is C99

svn path=/trunk/kdegraphics/kpdf/; revision=377202
parent 10af2d6c
......@@ -294,7 +294,7 @@ void PresentationWidget::overlayClick( const QPoint & position )
// compute angle relative to indicator (note coord transformation)
float angle = 0.5 + 0.5 * atan2f( -xPos, -yPos ) / M_PI;
int pageIndex = (int)roundf( angle * ( m_frames.count() - 1 ) );
int pageIndex = (int)( angle * ( m_frames.count() - 1 ) + 0.5 );
// go to selected page
changePage( pageIndex );
......
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