From: mkr Date: Wed, 25 Nov 2015 15:43:47 +0000 (+0300) Subject: refs #736: fix displaying of ghost of polyline section in addition mode. X-Git-Tag: V8_0_0a1~3^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5488595c4524089e729eabd422c65185b4b0ad14;p=modules%2Fgeom.git refs #736: fix displaying of ghost of polyline section in addition mode. --- diff --git a/src/CurveCreator/CurveCreator_Widget.cxx b/src/CurveCreator/CurveCreator_Widget.cxx index 54cf166bb..0bbccc6a1 100644 --- a/src/CurveCreator/CurveCreator_Widget.cxx +++ b/src/CurveCreator/CurveCreator_Widget.cxx @@ -1005,10 +1005,18 @@ void CurveCreator_Widget::onMousePress( SUIT_ViewWindow*, QMouseEvent* theEvent */ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEvent* theEvent ) { - if ( getActionMode() != ModificationMode ) + ActionMode aMode = getActionMode(); + if ( aMode != ModificationMode ) { // Emit selectionChanged() signal getOCCViewer()->performSelectionChanged(); + + if ( aMode == AdditionMode ) + { + Handle(AIS_InteractiveContext) aCtx = getAISContext(); + if ( !aCtx.IsNull() ) + aCtx->ClearSelected(); + } return; } if (theEvent->button() != Qt::LeftButton) return;