Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 14, 2019
1 parent f8af098 commit 3cb7e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgsgeometryutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,15 +497,15 @@ int QgsGeometryUtils::circleCircleInnerTangents( const QgsPointXY &center1, doub

// determine the straight-line distance between the centers
const double d = center1.distance( center2 );
const double radius1a = radius1 + radius2;

// check for solvability
if ( ( d <= ( radius1 + radius2 ) ) or ( qgsDoubleNear( d, ( radius1 + radius2 ) ) ) )
if ( d <= radius1a || qgsDoubleNear( d, radius1a ) )
{
// no solution. circles intersect or touch.
return 0;
}

const double radius1a = radius1 + radius2;
if ( !tangentPointAndCircle( center1, radius1a, center2, line1P2, line2P2 ) )
{
// there are no tangents
Expand Down

0 comments on commit 3cb7e31

Please sign in to comment.