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 90d116c6f509098f001bf1b10e8a58d081e46a14
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsadvanceddigitizingdockwidget.cpp
@@ -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.
You can’t perform that action at this time.