Skip to content

Commit

Permalink
Hide orange measure line and points while measure tool is inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondnijssen committed Mar 7, 2019
1 parent 8177fd4 commit 04540b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgsmeasuretool.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -98,6 +100,8 @@ void QgsMeasureTool::deactivate()
mSnapIndicator->setMatch( QgsPointLocator::Match() );

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

Expand Down

0 comments on commit 04540b1

Please sign in to comment.