[Marble-commits] KDE/kdeedu/marble/src/lib
Ariya Hidayat
ariya at kde.org
Thu Jul 30 20:47:14 CEST 2009
SVN commit 1004705 by ariya:
Fix potential divide-by-zero.
M +1 -1 MarbleWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1004704:1004705
@@ -833,7 +833,7 @@
customPaint( &painter );
d->m_map->d->paintOverlay( painter, dirtyRect );
- qreal fps = 1000.0 / (qreal)( t.elapsed() );
+ qreal fps = 1000.0 / (qreal)( t.elapsed() + 1 );
d->m_map->d->paintFps( painter, dirtyRect, fps );
emit d->m_map->framesPerSecond( fps );
}
More information about the Marble-commits
mailing list