Skip to content
Permalink
Browse files

Fix numerical problems in circular string rendering

  • Loading branch information
mhugent committed Oct 15, 2015
1 parent 5654eec commit 81dc11a924ef3e40549f9d5d8e319ac41f1bc53e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsgeometryutils.cpp
@@ -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;

0 comments on commit 81dc11a

Please sign in to comment.
You can’t perform that action at this time.