Skip to content

Commit 81dc11a

Browse files
committedOct 15, 2015
Fix numerical problems in circular string rendering
1 parent 5654eec commit 81dc11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/geometry/qgsgeometryutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void QgsGeometryUtils::circleCenterRadius( const QgsPointV2& pt1, const QgsPoint
285285
det = ( pt1.x() - pt2.x() ) * ( pt2.y() - pt3.y() ) - ( pt2.x() - pt3.x() ) * ( pt1.y() - pt2.y() );
286286

287287
/* Check colinearity */
288-
if ( qgsDoubleNear( fabs( det ), 0.0 ) )
288+
if ( qgsDoubleNear( fabs( det ), 0.0, 0.00000000001 ) )
289289
{
290290
radius = -1.0;
291291
return;

0 commit comments

Comments
 (0)
Please sign in to comment.