mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-08 02:17:27 +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 )
|
void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEvent* theEvent )
|
||||||
{
|
{
|
||||||
if ( getActionMode() != ModificationMode )
|
ActionMode aMode = getActionMode();
|
||||||
|
if ( aMode != ModificationMode )
|
||||||
{
|
{
|
||||||
// Emit selectionChanged() signal
|
// Emit selectionChanged() signal
|
||||||
getOCCViewer()->performSelectionChanged();
|
getOCCViewer()->performSelectionChanged();
|
||||||
|
|
||||||
|
if ( aMode == AdditionMode )
|
||||||
|
{
|
||||||
|
Handle(AIS_InteractiveContext) aCtx = getAISContext();
|
||||||
|
if ( !aCtx.IsNull() )
|
||||||
|
aCtx->ClearSelected();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (theEvent->button() != Qt::LeftButton) return;
|
if (theEvent->button() != Qt::LeftButton) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user