Skip to content
Permalink
Browse files

[cad] Fix invalid coordinates when x/y snapping is enabled and

subsequent segments are parallel

(cherry-picked from 90d116c)
  • Loading branch information
nyalldawson committed May 16, 2016
1 parent 82a4b4d commit aa6347eb9ba73dfe3b87357a292a1b00bb578c3e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsadvanceddigitizingdockwidget.cpp
@@ -574,7 +574,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent* e )
}
else if ( mXConstraint->isLocked() )
{
if ( cosa == 0 )
if ( qgsDoubleNear( cosa, 0.0 ) )
{
res = false;
}
@@ -590,7 +590,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent* e )
}
else if ( mYConstraint->isLocked() )
{
if ( sina == 0 )
if ( qgsDoubleNear( sina, 0.0 ) )
{
res = false;
}

0 comments on commit aa6347e

Please sign in to comment.
You can’t perform that action at this time.