Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.6 OS: Solaris I get this compile error on Solaris 8: [ 76%] Building CXX object okular/CMakeFiles/okularpart.dir/ui/thumbnaillist.o /cad4/stevee/kde-svn/kdegraphics/okular/ui/thumbnaillist.cpp: In member function `void ThumbnailWidget::resizeFitWidth(int)': /cad4/stevee/kde-svn/kdegraphics/okular/ui/thumbnaillist.cpp:511: error: `lround' was not declared in this scope
Created attachment 21041 [details] Replace lround with qRound
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() ) ); }