Commit 251a9f66 authored by Torsten Rahn's avatar Torsten Rahn Committed by Torsten Rahn

Fix crash inside Azimuthal Equidistant Projection crash.

(Thanks Friedrich!)

CCBUG: 365009
parent e39e03cb
......@@ -98,7 +98,7 @@ bool AzimuthalEquidistantProjection::screenCoordinates( const GeoDataCoordinates
qreal c = qAcos(cosC);
qreal k = c / qSin( c );
qreal k = cosC == 1 ? 1 : c / qSin( c );
// Let (x, y) be the position on the screen of the placemark..
x = ( qCos( phi ) * qSin( lambda - lambdaPrime ) ) * k;
......
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