From 6fed33a0940c0e1a11c21e129de671db0e90a18b Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 17 Sep 2012 12:52:51 +0000 Subject: [PATCH] Mantis issue 0021835: EDF 2070 GEOM : Problem with detecting Self-intersections --- src/GEOMGUI/GEOM_msg_en.ts | 4 ++++ .../MeasureGUI_CheckSelfIntersectionsDlg.cxx | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/GEOMGUI/GEOM_msg_en.ts b/src/GEOMGUI/GEOM_msg_en.ts index e677b0980..26c1f8b80 100644 --- a/src/GEOMGUI/GEOM_msg_en.ts +++ b/src/GEOMGUI/GEOM_msg_en.ts @@ -7,6 +7,10 @@ BRep_API: command not done Error: can't build object + + PAL_NOT_DONE_ERROR + Operation aborted + CHANGE_ORIENTATION_NEW_OBJ_NAME Invert diff --git a/src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx b/src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx index df12686dd..e94f29d68 100644 --- a/src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx +++ b/src/MeasureGUI/MeasureGUI_CheckSelfIntersectionsDlg.cxx @@ -18,11 +18,9 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// // GEOM GEOMGUI : GUI for Geometry component // File : MeasureGUI_CheckSelfIntersectionsDlg.cxx -// Author : Vladimir KLYACHIN, Open CASCADE S.A.S. (vladimir.klyachin@opencascade.com) #include "MeasureGUI_CheckSelfIntersectionsDlg.h" #include "MeasureGUI_Widgets.h" @@ -144,7 +142,13 @@ void MeasureGUI_CheckSelfIntersectionsDlg::processObject() SalomeApp_Tools::QtCatchCorbaException(e); isFailed = true; } - if (isFailed) { + + if (!anOper->IsDone()) { + aMsg += tr(anOper->GetErrorCode()); + myGrp->TextView1->setText(aMsg); + return; + } + else if (isFailed) { aMsg += tr("GEOM_CHECK_SELF_INTERSECTIONS_FAILED"); myGrp->TextView1->setText(aMsg); return; -- 2.39.2