Only clear the selection due to a click on no visual features if there are actually multiple visual features to select

Originally committed to SVN as r6749.
This commit is contained in:
Thomas Goyne 2012-05-04 02:53:09 +00:00
parent 479de87068
commit 9269c79763
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ void VisualTool<FeatureType>::OnMouseEvent(wxMouseEvent &event) {
} }
// start hold // start hold
else { else {
if (!alt_down) { if (!alt_down && features.size() > 1) {
sel_features.clear(); sel_features.clear();
Selection sel; Selection sel;
sel.insert(c->selectionController->GetActiveLine()); sel.insert(c->selectionController->GetActiveLine());