Skip to content
Permalink
Browse files

qFuzzyIsNull -> qgsDoubleNear

  • Loading branch information
nyalldawson committed Aug 24, 2017
1 parent b5ca4b4 commit ad89193b053600b2f2b1f8b6869481b2635dce80
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/analysis/vector/qgsgeometrysnapper.cpp
  2. +1 −1 src/core/geometry/qgsgeometryutils.cpp
@@ -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.
You can’t perform that action at this time.