Skip to content
Permalink
Browse files

Merge pull request #9421 from raymondnijssen/measuretoolfix

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 99cedd6e104afa4bbb74753bfe39ab77d2f3fb6e
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 99cedd6

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