Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue 0020904: [CEA 411] export VTK in GEOM
[modules/geom.git]
/
src
/
GEOMImpl
/
GEOMImpl_IGroupOperations.cxx
diff --git
a/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx
b/src/GEOMImpl/GEOMImpl_IGroupOperations.cxx
index ab894fcbcc875bf487443f4d88184379457962f8..0d7ce44353e22eac4837cbe4bfa8ee6a0175524e 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IGroupOperations.cxx
+++ b/
src/GEOMImpl/GEOMImpl_IGroupOperations.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
08
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-20
10
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-18,6
+18,7
@@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
#include <Standard_Stream.hxx>
#include <Standard_Stream.hxx>
@@
-146,8
+147,8
@@
void GEOMImpl_IGroupOperations::AddObject(Handle(GEOM_Object) theGroup, int theS
for(Standard_Integer i = 1; i<=aLength; i++) {
aNewSeq->SetValue(i, aSeq->Value(i));
if(aSeq->Value(i) == theSubShapeID) {
for(Standard_Integer i = 1; i<=aLength; i++) {
aNewSeq->SetValue(i, aSeq->Value(i));
if(aSeq->Value(i) == theSubShapeID) {
- SetErrorCode(ALREADY_PRESENT);
- return; //
+
SetErrorCode(ALREADY_PRESENT);
+
return; //
}
}
aNewSeq->SetValue(aLength+1, theSubShapeID);
}
}
aNewSeq->SetValue(aLength+1, theSubShapeID);
@@
-249,7
+250,8
@@
void GEOMImpl_IGroupOperations::UnionList (Handle(GEOM_Object) theGroup,
Standard_Integer aLen = theSubShapes->Length();
if (aLen < 1) {
Standard_Integer aLen = theSubShapes->Length();
if (aLen < 1) {
- SetErrorCode("The list is empty");
+ //SetErrorCode("The list is empty");
+ SetErrorCode(OK);
return;
}
return;
}