Mantis issue 0021835: EDF 2070 GEOM : Problem with detecting Self-intersections

This commit is contained in:
jfa 2012-09-17 12:52:51 +00:00
parent 48e1d4982a
commit 6fed33a094
2 changed files with 11 additions and 3 deletions

View File

@ -7,6 +7,10 @@
<source>BRep_API: command not done</source>
<translation>Error: can&apos;t build object</translation>
</message>
<message>
<source>PAL_NOT_DONE_ERROR</source>
<translation>Operation aborted</translation>
</message>
<message>
<source>CHANGE_ORIENTATION_NEW_OBJ_NAME</source>
<translation>Invert</translation>

View File

@ -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;