Skip to content
Permalink
Browse files
[cad] Fix invalid coordinates when x/y snapping is enabled and
subsequent segments are parallel
  • Loading branch information
nyalldawson committed May 2, 2016
1 parent 3a543e4 commit 90d116c
Showing 1 changed file with 2 additions and 2 deletions.
@@ -677,7 +677,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent* e )
}
else if ( mXConstraint->isLocked() )
{
if ( cosa == 0 )
if ( qgsDoubleNear( cosa, 0.0 ) )
{
res = false;
}
@@ -693,7 +693,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent* e )
}
else if ( mYConstraint->isLocked() )
{
if ( sina == 0 )
if ( qgsDoubleNear( sina, 0.0 ) )
{
res = false;
}

0 comments on commit 90d116c

Please sign in to comment.