mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
[bos #26726] EDF 24466 - CheckAndImprove generates wrong result. Fix SIGSEGV on CheckCompoundOfBlocks failure.
This commit is contained in:
parent
9fddcc1f36
commit
93082a7c84
@ -626,16 +626,20 @@ CORBA::Boolean GEOM_IBlocksOperations_i::CheckCompoundOfBlocks
|
||||
Handle(::GEOM_Object) aCompound = GetObjectImpl(theCompound);
|
||||
if (aCompound.IsNull()) return isComp;
|
||||
|
||||
GEOM::GEOM_IBlocksOperations::BCErrors_var anErrArray =
|
||||
new GEOM::GEOM_IBlocksOperations::BCErrors();
|
||||
|
||||
//Check
|
||||
std::list<GEOMImpl_IBlocksOperations::BCError> errList;
|
||||
isComp = GetOperations()->CheckCompoundOfBlocks
|
||||
(aCompound, theToleranceC1, errList);
|
||||
if (!GetOperations()->IsDone())
|
||||
if (!GetOperations()->IsDone()) {
|
||||
anErrArray->length(0);
|
||||
theErrors = anErrArray._retn();
|
||||
return isComp;
|
||||
}
|
||||
|
||||
const int nbErr = errList.size();
|
||||
GEOM::GEOM_IBlocksOperations::BCErrors_var anErrArray =
|
||||
new GEOM::GEOM_IBlocksOperations::BCErrors();
|
||||
anErrArray->length(nbErr);
|
||||
|
||||
// fill the local CORBA array with values from lists
|
||||
|
Loading…
Reference in New Issue
Block a user