[Marble-commits] KDE/kdeedu/marble/src/lib
Torsten Rahn
tackat at kde.org
Tue Jul 28 15:47:15 CEST 2009
SVN commit 1003629 by rahn:
- Third attempt
M +1 -1 MarbleMap.cpp
M +3 -3 MarbleWidget.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleMap.cpp #1003628:1003629
@@ -505,7 +505,7 @@
void MarbleMap::setDistance( qreal distance )
{
- qreal minDistance = 0.0001;
+ qreal minDistance = 0.001;
if ( distance <= minDistance ) {
qDebug() << "Invalid distance: 0 m";
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1003628:1003629
@@ -571,10 +571,10 @@
targetPosition.setAltitude( distance() );
// Avoid zero distance
- qreal minDistance = 0.0001;
+ qreal minDistance = 0.001;
- if ( targetPosition <= 0.0001 ) {
- targetPosition = minDistance;
+ if ( targetPosition.altitude() <= minDistance ) {
+ targetPosition.setAltitude( minDistance );
}
d->m_physics->jumpTo( targetPosition );
More information about the Marble-commits
mailing list