From kde-commits Sun Jan 11 21:19:59 2009 From: Torsten Rahn Date: Sun, 11 Jan 2009 21:19:59 +0000 To: kde-commits Subject: branches/KDE/4.2/kdeedu/marble/src/lib Message-Id: <1231708799.249408.15278.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123170891901196 SVN commit 909580 by rahn: - Fixing MeasureTool regression as discovered by SaroEngels ... M +3 -8 MeasureTool.cpp --- branches/KDE/4.2/kdeedu/marble/src/lib/MeasureTool.cpp #909579:909580 @@ -208,15 +208,10 @@ // Let itpos be a quaternion that is between prevqpos and qpos. itpos.nlerp( prevqpos, qpos, t ); itpos.getSpherical( lon, lat ); - if ( viewport->currentProjection() + viewport->currentProjection() ->screenCoordinates( GeoDataCoordinates( lon, lat ), viewport, - x, y ) ) - { - distancePath << QPointF( x, y ); - } - else { - //qDebug() << "(x,y): " << x << y; - } + x, y ); + distancePath << QPointF( x, y ); } // Now actually paint the path. Repeat it if the projection allows it.