Commit f956c09d authored by Scott Wheeler's avatar Scott Wheeler
Browse files

remove trigraph, don't use round() (it's C99)

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=366203
parent e40e7867
......@@ -42,7 +42,7 @@
#include "settings.h"
/* Notes:
- FIXME event queuing to avoid flow loops (!!??) maybe avoided by the
- FIXME event queuing to avoid flow loops (!!?) maybe avoided by the
warning to not call something 'active' inside an observer method.
*/
......
......@@ -41,6 +41,8 @@
#include "page.h"
#include "settings.h"
#define ROUND(x) (int(x + 0.5))
// structure used internally by PageView for data storage
class PageViewPrivate
{
......@@ -1295,8 +1297,8 @@ void PageView::slotRelayoutPages()
if ( focusedPage )
{
const QRect & geometry = focusedPage->geometry();
center( geometry.left() + (int) round( focusedX * (double)geometry.width() ),
geometry.top() + (int) round( focusedY * (double)geometry.height() ) );
center( geometry.left() + ROUND( focusedX * (double)geometry.width() ),
geometry.top() + ROUND( focusedY * (double)geometry.height() ) );
}
else
center( fullWidth / 2, 0 );
......
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