From 72f07fb5e09c18c2ef97be63014e8328b12d59d2 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Wed, 13 Feb 2019 11:33:27 +0100 Subject: [PATCH] debug stream profiles linear interpolator --- src/HYDROGUI/HYDROGUI_Operation.cxx | 5 ++++- src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx | 2 +- src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) 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 ); -- 2.39.2