From: jfa Date: Thu, 10 Feb 2011 07:07:28 +0000 (+0000) Subject: Mantis issue 0021182: EDF 1784 GEOM: GetInPlace issue. X-Git-Tag: Start_BR_19998_21191~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d40420955721d220155349c683d938005e42294f;p=modules%2Fgeom.git Mantis issue 0021182: EDF 1784 GEOM: GetInPlace issue. --- diff --git a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx index f6421fa40..a19abac1b 100644 --- a/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PartitionDriver.cxx @@ -36,6 +36,7 @@ //#include #include #include +#include #include #include @@ -446,6 +447,15 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(TFunction_Logbook& log) const const TopTools_ListOfShape& aModified = aMR.FindFromKey(anEntity); Standard_Integer nbModified = aModified.Extent(); + if (nbModified > 0) { // Mantis issue 0021182 + int ih = 1; + TopTools_ListIteratorOfListOfShape itM (aModified); + for (; itM.More() && nbModified > 0; itM.Next(), ++ih) { + if (!aResIndices.Contains(itM.Value())) { + nbModified = 0; + } + } + } if (nbModified > 0) { TDF_Label aWhatHistoryLabel = anArgumentHistoryLabel.FindChild(ie, Standard_True); Handle(TDataStd_IntegerArray) anAttr =