The selection is lost by second click in the same point
The scenario is: Click sketch feature, click line feature, create line, select created line by click in a point - it is selected, select the same point secondly - the selection disappears
// emit deselection();
if (myStartPnt == myEndPnt) {
+ // the MoveTo is necessary for the second click in the same point. Otherwise the selection is lost.
+ Handle(V3d_View) aView3d = theWindow->viewPort()->getView();
+ if ( !aView3d.IsNull() ) {
+ myAISContext->MoveTo(theEvent->x(), theEvent->y(), aView3d);
+ }
if (aHasShift && myMultiSelectionEnabled)
myAISContext->ShiftSelect();
else