Commit c72cbc2c authored by Dennis Nienhüser's avatar Dennis Nienhüser

Fix degree vs. rad confusion

parent 353b77a3
......@@ -264,13 +264,9 @@ GeoDataCoordinates AutoNavigation::Private::findIntersection( qreal currentX, qr
void AutoNavigation::Private::adjustZoom( const GeoDataCoordinates &currentPosition, qreal speed )
{
const qreal lon = currentPosition.longitude( GeoDataCoordinates::Degree );
const qreal lat = currentPosition.latitude( GeoDataCoordinates::Degree );
qreal currentX = 0;
qreal currentY = 0;
if( !m_viewport->screenCoordinates( lon, lat, currentX, currentY ) ) {
if( !m_viewport->screenCoordinates(currentPosition, currentX, currentY ) ) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment