X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ExternalPointsMgr.cpp;h=8e5405d11d4060148c72bcbe45217ff291828153;hb=3cae3b732cbc48455adeef43b3efd6dfc1cac81d;hp=e6969c8090f22da7333de96f5207e298ad9bc09d;hpb=dc75c390f0aa6108d6983a8618dc4b9a4cd5949e;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ExternalPointsMgr.cpp b/src/PartSet/PartSet_ExternalPointsMgr.cpp index e6969c809..8e5405d11 100644 --- a/src/PartSet/PartSet_ExternalPointsMgr.cpp +++ b/src/PartSet/PartSet_ExternalPointsMgr.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2017 CEA/DEN, EDF R&D +// Copyright (C) 2017-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // File: PartSet_ExternalPointsMgr.cpp @@ -101,7 +100,8 @@ QList> PartSet_ExternalPointsMgr::findCirc ResultPtr aResObj = std::dynamic_pointer_cast(aObj); // Do not use Fields and groups in selection in sketcher - if ((aResObj->groupName() == ModelAPI_ResultField::group()) || + if (!aResObj.get() || + (aResObj->groupName() == ModelAPI_ResultField::group()) || (aResObj->groupName() == ModelAPI_ResultGroup::group())) continue;