]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug stream profiles linear interpolator
authorPaul RASCLE <paul.rascle@edf.fr>
Wed, 13 Feb 2019 10:33:27 +0000 (11:33 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Wed, 13 Feb 2019 10:33:27 +0000 (11:33 +0100)
src/HYDROGUI/HYDROGUI_Operation.cxx
src/HYDROGUI/HYDROGUI_ProfileInterpolateDlg.cxx
src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.cxx

index 30caab310ad1451e56a17b3c4a5b576259ce93c6..80365156df3a7c0d6d75fe17ff36e882495226b9 100644 (file)
@@ -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 ( ... )
index fe3f1beb58e6cd8277a53703176a2ab5d9ff7344..e4abcac67373ed7294f2f7ce2c0c4d37411ab2a2 100644 (file)
@@ -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() );
 
index 3ea3a5ea84cd10b67af289a4158ef828e3fa960e..6df4127f205ac6ec157b8ad6efcdbd5b9240d1f0 100644 (file)
@@ -81,7 +81,7 @@ void HYDROGUI_ProfileInterpolateOp::abortOperation()
 {
     if ( !myPreview.IsNull() )
     {
-        HYDROGUI_ProfileInterpolateDlg* aDlg = new HYDROGUI_ProfileInterpolateDlg( module(), getName() );
+        HYDROGUI_ProfileInterpolateDlg* aDlg = ::qobject_cast<HYDROGUI_ProfileInterpolateDlg*>( 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<HYDROGUI_ProfileInterpolateDlg*>( inputPanel() );
         if ( aDlg && !aDlg->getAISContext().IsNull() )
         {
             aDlg->getAISContext()->Remove( myPreview, false );