Skip to content
Permalink
Browse files

Hide orange measure line and points while measure tool is inactive

  • Loading branch information
raymondnijssen committed Mar 7, 2019
1 parent 05756e5 commit 16d96e9e6fbbda0f64f2325e56a11baa3b7dc108
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgsmeasuretool.cpp
@@ -68,6 +68,8 @@ QVector<QgsPointXY> QgsMeasureTool::points() const
void QgsMeasureTool::activate()
{
mDialog->show();
mRubberBand->show();
mRubberBandPoints->show();
QgsMapTool::activate();

// ensure that we have correct settings
@@ -98,6 +100,8 @@ void QgsMeasureTool::deactivate()
mSnapIndicator->setMatch( QgsPointLocator::Match() );

mDialog->hide();
mRubberBand->hide();
mRubberBandPoints->hide();
QgsMapTool::deactivate();
}

0 comments on commit 16d96e9

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