Skip to content

Commit

Permalink
Merge pull request #9421 from raymondnijssen/measuretoolfix
Browse files Browse the repository at this point in the history
Hide orange measure line and points while measure tool is inactive
  • Loading branch information
m-kuhn committed Mar 8, 2019
2 parents cccf974 + 16d96e9 commit 99cedd6
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 99cedd6

Please sign in to comment.