Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix numerical problems in circular string rendering
  • Loading branch information
mhugent committed Oct 15, 2015
1 parent 5654eec commit 81dc11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -285,7 +285,7 @@ void QgsGeometryUtils::circleCenterRadius( const QgsPointV2& pt1, const QgsPoint
det = ( pt1.x() - pt2.x() ) * ( pt2.y() - pt3.y() ) - ( pt2.x() - pt3.x() ) * ( pt1.y() - pt2.y() );

/* Check colinearity */
if ( qgsDoubleNear( fabs( det ), 0.0 ) )
if ( qgsDoubleNear( fabs( det ), 0.0, 0.00000000001 ) )
{
radius = -1.0;
return;
Expand Down

0 comments on commit 81dc11a

Please sign in to comment.