From: apl Date: Wed, 12 Oct 2016 16:00:32 +0000 (+0300) Subject: Fix highlighting problem during interaction X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8935becb09be43e793fa77c7535b4810d919571c;p=modules%2Fgeom.git Fix highlighting problem during interaction --- diff --git a/src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx b/src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx old mode 100755 new mode 100644 index 9e1c0e3c5..504743406 --- a/src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx +++ b/src/MeasureGUI/MeasureGUI_AnnotationInteractor.cxx @@ -232,6 +232,11 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t mySelection.Append( anAISContext->SelectedOwner() ); } + if ( anAISContext->IsHilighted( myActiveIO ) ) + { + anAISContext->Unhilight( myActiveIO, Standard_False ); + } + anAISContext->ClearSelected( Standard_False ); anAISContext->AddOrRemoveSelected( aDetected ); @@ -253,6 +258,12 @@ bool MeasureGUI_AnnotationInteractor::eventFilter( QObject* theObject, QEvent* t if ( !myActiveIO.IsNull() ) { const Handle(AIS_InteractiveContext) anAISContext = myViewer->getAISContext(); + + if ( anAISContext->IsHilighted( myActiveIO ) ) + { + anAISContext->Unhilight( myActiveIO, Standard_False ); + } + const QPoint aDelta = aMouseEv->pos() - myStartPoint; myActiveIO->Drag( aDelta.x(), (-aDelta.y()), aView3d ); anAISContext->Update( myActiveIO, Standard_False ); diff --git a/src/MeasureGUI/MeasureGUI_AnnotationInteractor.h b/src/MeasureGUI/MeasureGUI_AnnotationInteractor.h old mode 100755 new mode 100644