Skip to content
Permalink
Browse files

fix build

  • Loading branch information
jef-n committed Jan 14, 2019
1 parent f8af098 commit 3cb7e31fd7ca33cb5d9d403b720641bdf73aaf29
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/geometry/qgsgeometryutils.cpp
@@ -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

0 comments on commit 3cb7e31

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