void HYDROGUI_BathymetryOp::commitOperation()
{
- activate( false );
+ if( myMode!=BathymetryTextId )
+ activate( false );
}
void HYDROGUI_BathymetryOp::abortOperation()
{
foreach( Handle(HYDROGUI_BathymetryPrs) bath, baths )
bath->GetShape()->TextLabels( isActivate );
+ commit();
break;
}
HYDROGUI_BathymetryOp( HYDROGUI_Module* theModule, int theMode );
virtual ~HYDROGUI_BathymetryOp();
+ void activate( bool );
+
protected:
virtual void startOperation();
virtual void commitOperation();
virtual void abortOperation();
- void activate( bool );
OCCViewer_ViewWindow* activeViewWindow() const;
private:
if( isChecked )
startOperation( BathymetryTextId );
else
- operation( BathymetryTextId )->abort();
+ {
+ HYDROGUI_BathymetryOp* op = dynamic_cast<HYDROGUI_BathymetryOp*>( operation( BathymetryTextId ) );
+ if( op )
+ op->activate( false );
+ }
}
getContext()->ClearSelected();
prs->SetTextLabels( selection );
prs->Redisplay();
+ getContext()->UpdateCurrentViewer();
}