Skip to content
Permalink
Browse files

Don't clear the x and y values in the CAD canvas dock immediately after

a mouse click

Otherwise the only way to see these is by moving the mouse a tiny bit,
which changes the values.
  • Loading branch information
nyalldawson committed Feb 10, 2021
1 parent f8f9db1 commit 3fa5a7fe54a5e8bfddbb427d85d65f840f11a6ff
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/gui/qgsadvanceddigitizingdockwidget.cpp
@@ -364,6 +364,19 @@ void QgsAdvancedDigitizingDockWidget::releaseLocks( bool releaseRepeatingLocks )
mYConstraint->setLockMode( CadConstraint::NoLock );
emit lockYChanged( false );
}

if ( !mCadPointList.empty() )
{
if ( !mXConstraint->isLocked() && !mXConstraint->relative() )
{
mXConstraint->setValue( mCadPointList.constLast().x(), true );
}
if ( !mYConstraint->isLocked() && !mYConstraint->relative() )
{
mYConstraint->setValue( mCadPointList.constLast().y(), true );
}
}

}

#if 0

0 comments on commit 3fa5a7f

Please sign in to comment.