Summary: | math.h on Solaris does not have atan2f and ceilf | ||
---|---|---|---|
Product: | [Unmaintained] kpdf | Reporter: | Silas De Munck <s.dem> |
Component: | general | Assignee: | Albert Astals Cid <aacid> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Silas De Munck
2005-03-04 00:29:15 UTC
CVS commit by aacid: Fix compile on Solaris. Thanks for notyfiyng, sadly is too late for KDE 3.4.0, will come with KDE 3.4.1 BUGS: 100778 M +1 -1 pageview.cpp 1.44.2.2 M +1 -1 presentationwidget.cpp 1.22.2.1 --- kdegraphics/kpdf/ui/pageview.cpp #1.44.2.1:1.44.2.2 @@ -1498,5 +1498,5 @@ void PageView::slotRelayoutPages() // 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 ], --- kdegraphics/kpdf/ui/presentationwidget.cpp #1.22:1.22.2.1 @@ -321,5 +321,5 @@ void PresentationWidget::overlayClick( c // 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 ); |