Skip to content
Permalink
Browse files

Do not keep highlight when locking/unlocking feature

It was a bit strange effect when locking feature... when moving mouse
over a feature it would have highlight, then on right click it would
also get vertex editor square markers in addition to the highlight, but
then immediately after mouse move the original highlight would be gone.
Now it's simplified so that feature highlight on right click gets removed.
  • Loading branch information
wonder-sk committed Feb 21, 2019
1 parent e42c6a3 commit 6fd21c2f7ced87facb4b8fe4f85d925665eda6f2
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/vertextool/qgsvertextool.cpp
@@ -959,7 +959,6 @@ void QgsVertexTool::tryToSelectFeature( QgsMapMouseEvent *e )
// we have a feature to select
QPair<QgsVectorLayer *, QgsFeatureId> alternative = mSelectedFeatureAlternatives->alternatives.at( mSelectedFeatureAlternatives->index );
updateVertexEditor( alternative.first, alternative.second );
updateFeatureBand( QgsPointLocator::Match( QgsPointLocator::Area, alternative.first, alternative.second, 0, QgsPointXY() ) );
}
else
{
@@ -970,8 +969,11 @@ void QgsVertexTool::tryToSelectFeature( QgsMapMouseEvent *e )
{
mVertexEditor->updateEditor( nullptr );
}
updateFeatureBand( QgsPointLocator::Match() );
}

// we have either locked ourselves to a feature or unlocked again
// in any case, we don't want feature highlight anymore (vertex editor has its own highlight)
updateFeatureBand( QgsPointLocator::Match() );
}


0 comments on commit 6fd21c2

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