From: jfa Date: Fri, 22 Mar 2019 10:39:59 +0000 (+0300) Subject: tracker_salome #16492 EDF 18458 - Restoregivensubshapes X-Git-Tag: V9_3_0b2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f5ed2c56a9baddbbc5578278acd2571231c5bb8;p=modules%2Fgeom.git tracker_salome #16492 EDF 18458 - Restoregivensubshapes --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index da12563f2..e18a02caa 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -1642,7 +1642,8 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(GEOM::GEOM_Object_ptr theObj // Get all arguments GEOM::ListOfGBO_var anOpArgsList = theObject->GetDependency(); - Standard_Integer nbArgsActual = anOpArgsList->length(); + Standard_Integer nbOpArgs = anOpArgsList->length(); + Standard_Integer nbArgsActual = nbOpArgs; // If anOpArgsList list is empty, nothing to do if (nbArgsActual == 0) @@ -1674,7 +1675,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreGivenSubShapes(GEOM::GEOM_Object_ptr theObj if (nbArgsActual < 1) return aParts._retn(); - if (theInheritFirstArg || (nbArgsActual == 1)) { + if (theInheritFirstArg || (nbOpArgs == 1)) { // Do not publish argument's reflection, // but only reconstruct its published sub-shapes