mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 12:40:34 +05:00
PAL10324. Fix MakePartition() for the case theMaterials.length() == 0
This commit is contained in:
parent
5c45790bd4
commit
8e12e2d082
@ -154,10 +154,12 @@ GEOM::GEOM_Object_ptr GEOM_IBooleanOperations_i::MakePartition
|
||||
|
||||
//Get the materials
|
||||
aLen = theMaterials.length();
|
||||
if ( aLen ) {
|
||||
aMaterials = new TColStd_HArray1OfInteger (1, aLen);
|
||||
for (ind = 0; ind < aLen; ind++) {
|
||||
aMaterials->SetValue(ind+1, theMaterials[ind]);
|
||||
}
|
||||
}
|
||||
|
||||
// Make Partition
|
||||
Handle(GEOM_Object) anObject =
|
||||
|
Loading…
Reference in New Issue
Block a user