Skip to content
Permalink
Browse files
qFuzzyIsNull -> qgsDoubleNear
  • Loading branch information
nyalldawson committed Aug 24, 2017
1 parent b5ca4b4 commit ad89193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -58,7 +58,7 @@ bool QgsSnapIndex::SegmentSnapItem::getIntersection( const QgsPoint &p1, const Q
double vl = v.length();
double wl = w.length();

if ( qFuzzyIsNull( vl ) || qFuzzyIsNull( wl ) )
if ( qgsDoubleNear( vl, 0, 0.000000000001 ) || qgsDoubleNear( wl, 0, 0.000000000001 ) )
{
return false;
}
@@ -344,7 +344,7 @@ bool QgsGeometryUtils::segmentIntersection( const QgsPoint &p1, const QgsPoint &
double vl = v.length();
double wl = w.length();

if ( qFuzzyIsNull( vl ) || qFuzzyIsNull( wl ) )
if ( qgsDoubleNear( vl, 0, 0.000000000001 ) || qgsDoubleNear( wl, 0, 0.000000000001 ) )
{
return false;
}

0 comments on commit ad89193

Please sign in to comment.