File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent *e )
593
593
{
594
594
point.setX ( previousPt.x () + mXConstraint ->value () );
595
595
}
596
- if ( !mSnappedSegment .isEmpty () && !mXConstraint ->isLocked () )
596
+ if ( !mSnappedSegment .isEmpty () && !mYConstraint ->isLocked () )
597
597
{
598
598
// intersect with snapped segment line at X ccordinate
599
599
const double dx = mSnappedSegment .at ( 1 ).x () - mSnappedSegment .at ( 0 ).x ();
@@ -620,7 +620,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent *e )
620
620
{
621
621
point.setY ( previousPt.y () + mYConstraint ->value () );
622
622
}
623
- if ( !mSnappedSegment .isEmpty () && !mYConstraint ->isLocked () )
623
+ if ( !mSnappedSegment .isEmpty () && !mXConstraint ->isLocked () )
624
624
{
625
625
// intersect with snapped segment line at Y ccordinate
626
626
const double dy = mSnappedSegment .at ( 1 ).y () - mSnappedSegment .at ( 0 ).y ();
You can’t perform that action at this time.
0 commit comments