| Summary: | Compile error on Solaris 8 - kdegraphics/okular/ui/thumbnaillist.cpp uses lround which is not available | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Steve Evans <stevee> |
| Component: | general | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Replace lround with qRound | ||
|
Description
Steve Evans
2007-07-04 16:30:05 UTC
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() ) );
}
|