Skip to content

Commit

Permalink
qFuzzyIsNull -> qgsDoubleNear
Browse files Browse the repository at this point in the history
  • 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.
2 changes: 1 addition & 1 deletion src/analysis/vector/qgsgeometrysnapper.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometryutils.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad89193

Please sign in to comment.