Skip to content

Commit

Permalink
Fix numerical problems in circular string rendering
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.