Skip to content
Permalink
Browse files

Clear cad dock widget

  • Loading branch information
uclaros authored and nyalldawson committed Mar 31, 2021
1 parent 78e8f4f commit 095a4b4c137820d295c1600ca1ccbdb321c8b164
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgsmaptoolrotatefeature.cpp
@@ -196,6 +196,7 @@ void QgsMapToolRotateFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
deleteRubberband();
notifyNotVectorLayer();
mSnapIndicator->setMatch( QgsPointLocator::Match() );
mCadDockWidget->clear();
return;
}

@@ -354,6 +355,7 @@ void QgsMapToolRotateFeature::cancel()
}
mRotationActive = false;
mSnapIndicator->setMatch( QgsPointLocator::Match() );
mCadDockWidget->clear();
}

void QgsMapToolRotateFeature::updateRubberband( double rotation )
@@ -385,6 +387,7 @@ void QgsMapToolRotateFeature::applyRotation( double rotation )
deleteRubberband();
notifyNotVectorLayer();
mSnapIndicator->setMatch( QgsPointLocator::Match() );
mCadDockWidget->clear();
return;
}

@@ -434,6 +437,7 @@ void QgsMapToolRotateFeature::applyRotation( double rotation )
deleteRotationWidget();
deleteRubberband();
mSnapIndicator->setMatch( QgsPointLocator::Match() );
mCadDockWidget->clear();

if ( mAutoSetAnchorPoint )
mAnchorPoint.reset();

0 comments on commit 095a4b4

Please sign in to comment.