mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-14 02:30:35 +05:00
refs #736: fix displaying of ghost of polyline section in addition mode.
This commit is contained in:
parent
610bd3aff0
commit
5488595c45
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user