From: Paul RASCLE Date: Wed, 13 Feb 2019 10:33:27 +0000 (+0100) Subject: debug stream profiles linear interpolator X-Git-Tag: SH_V2_2_0~99^2~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72f07fb5e09c18c2ef97be63014e8328b12d59d2;p=modules%2Fhydro.git debug stream profiles linear interpolator --- diff --git a/src/HYDROGUI/HYDROGUI_Operation.cxx b/src/HYDROGUI/HYDROGUI_Operation.cxx index 30caab31..80365156 100644 --- a/src/HYDROGUI/HYDROGUI_Operation.cxx +++ b/src/HYDROGUI/HYDROGUI_Operation.cxx @@ -232,7 +232,10 @@ void HYDROGUI_Operation::apply() catch ( Standard_Failure ) { Handle(Standard_Failure) aFailure = Standard_Failure::Caught(); - anErrorMsg = aFailure->GetMessageString(); + if (aFailure) + anErrorMsg = aFailure->GetMessageString(); + else + anErrorMsg = "failure unknown: catch ( Standard_Failure ) does not give access to failure!"; aResult = false; } catch ( ... ) diff --git a/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx b/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx index fe3f1beb..e4abcac6 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx @@ -87,7 +87,7 @@ HYDROGUI_ProfileInterpolateDlg::HYDROGUI_ProfileInterpolateDlg( HYDROGUI_Module* connect( myProfileFinish, SIGNAL( objectSelected( const QString& ) ), this, SIGNAL( profileFinishChanged( const QString& ) ) ); connect( myProfileNumber, SIGNAL( valueChanged( int ) ), this, SIGNAL( profileNumberChanged( int ) ) ); - connect( myParams, SIGNAL( editingFinished() ), this, SIGNAL( onParametersEditingFinished() ) ); + connect( myParams, SIGNAL( editingFinished() ), this, SLOT( onParametersEditingFinished() ) ); new HYDROGUI_OCCSelector( module(), viewer(), selectionMgr() ); diff --git a/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx b/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx index 3ea3a5ea..6df4127f 100644 --- a/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx +++ b/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx @@ -81,7 +81,7 @@ void HYDROGUI_ProfileInterpolateOp::abortOperation() { if ( !myPreview.IsNull() ) { - HYDROGUI_ProfileInterpolateDlg* aDlg = new HYDROGUI_ProfileInterpolateDlg( module(), getName() ); + HYDROGUI_ProfileInterpolateDlg* aDlg = ::qobject_cast( inputPanel() ); if ( aDlg && !aDlg->getAISContext().IsNull() ) { aDlg->getAISContext()->Remove( myPreview, false ); @@ -96,7 +96,7 @@ void HYDROGUI_ProfileInterpolateOp::commitOperation() { if ( !myPreview.IsNull() ) { - HYDROGUI_ProfileInterpolateDlg* aDlg = new HYDROGUI_ProfileInterpolateDlg( module(), getName() ); + HYDROGUI_ProfileInterpolateDlg* aDlg = ::qobject_cast( inputPanel() ); if ( aDlg && !aDlg->getAISContext().IsNull() ) { aDlg->getAISContext()->Remove( myPreview, false );