[Okular-devel] [Bug 147540] Compile error on Solaris 8 - kdegraphics/okular/ui/thumbnaillist.cpp uses lround which is not available
Pino Toscano
toscano.pino at tiscali.it
Wed Jul 4 16:41:21 CEST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=147540
toscano.pino tiscali it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From toscano.pino tiscali it 2007-07-04 16:41 -------
SVN commit 683290 by pino:
lround() -> qRound()
BUG: 147540
M +1 -4 thumbnaillist.cpp
--- trunk/KDE/kdegraphics/okular/ui/thumbnaillist.cpp #683289:683290
@ -23,9 +23,6 @
#include <kactioncollection.h>
#include <kicon.h>
-// system includes
-#include <math.h>
-
// local includes
#include "pagepainter.h"
#include "core/area.h"
@ -508,7 +505,7 @
void ThumbnailWidget::resizeFitWidth( int width )
{
m_pixmapWidth = width - m_margin;
- m_pixmapHeight = lround( m_page->ratio() * (double)m_pixmapWidth );
+ m_pixmapHeight = qRound( m_page->ratio() * (double)m_pixmapWidth );
setFixedSize( QSize( width, heightHint() ) );
}
More information about the Okular-devel
mailing list