From: nds Date: Thu, 15 Feb 2018 08:16:25 +0000 (+0300) Subject: Issue #2433 Vertex not named in group creation if a field is displayed X-Git-Tag: V_3.0.0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d6abb1f06ba71fae3a719a96f377e1a8566a59e;p=modules%2Fshaper.git Issue #2433 Vertex not named in group creation if a field is displayed --- diff --git a/src/PartSet/PartSet_Filters.cpp b/src/PartSet/PartSet_Filters.cpp index b827302b1..ffc6b2746 100644 --- a/src/PartSet/PartSet_Filters.cpp +++ b/src/PartSet/PartSet_Filters.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -59,10 +60,12 @@ Standard_Boolean PartSet_GlobalFilter::IsOk(const Handle(SelectMgr_EntityOwner)& // result of parts belongs to PartSet document and can be selected only when PartSet // is active in order to do not select the result of the active part. if (aResult.get()) { - if (aResult->groupName() == ModelAPI_ResultPart::group()) { + std::string aResultGroupName = aResult->groupName(); + if (aResultGroupName == ModelAPI_ResultPart::group()) { SessionPtr aMgr = ModelAPI_Session::get(); aValid = aMgr->activeDocument() == aMgr->moduleDocument(); - } else if (aResult->groupName() == ModelAPI_ResultGroup::group()) { + } else if (aResultGroupName == ModelAPI_ResultGroup::group() || + aResultGroupName == ModelAPI_ResultField::group()) { aValid = Standard_False; } else aValid = Standard_True;