svn path=/trunk/kdegraphics/kpdf/; revision=394901
@ -1500,7 +1500,7 @@ void PageView::slotRelayoutPages()
// Here we find out column's width and row's height to compute a table
// so we can place widgets 'centered in virtual cells'.
int nCols = Settings::viewColumns(),
nRows = (int)ceilf( (float)pageCount / (float)nCols ),
nRows = (int)ceil( (float)pageCount / (float)nCols ),
* colWidth = new int[ nCols ],
* rowHeight = new int[ nRows ],
cIdx = 0,
@ -320,7 +320,7 @@ void PresentationWidget::overlayClick( const QPoint & position )
return;
// compute angle relative to indicator (note coord transformation)
float angle = 0.5 + 0.5 * atan2f( -xPos, -yPos ) / M_PI;
float angle = 0.5 + 0.5 * atan2( -xPos, -yPos ) / M_PI;
int pageIndex = (int)( angle * ( m_frames.count() - 1 ) + 0.5 );
// go to selected page