Fix bug where visual tools could leave no lines selected.

Originally committed to SVN as r4400.
This commit is contained in:
Thomas Goyne 2010-06-02 07:22:48 +00:00
parent d295ce7b0a
commit fd00cf9a21
1 changed files with 2 additions and 3 deletions

View File

@ -170,6 +170,7 @@ void VisualTool<FeatureType>::OnMouseEvent (wxMouseEvent &event) {
ClearSelection();
AddSelection(curFeatureI);
}
SetEditbox();
}
}
else {
@ -221,9 +222,7 @@ void VisualTool<FeatureType>::OnMouseEvent (wxMouseEvent &event) {
else {
selChanged = false;
}
if (curFeature->lineN != -1) {
SetEditbox(curFeature->lineN);
}
SetEditbox(curFeature->lineN);
dragStartX = video.x;
dragStartY = video.y;