From: mpv Date: Mon, 15 Jul 2019 11:47:35 +0000 (+0300) Subject: Fix for the issue #2942 : Fatal error when select using filters and use object from... X-Git-Tag: VEDF2019Lot4~98 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2dbf4050a133a04b142c9972685907e524ae8146;p=modules%2Fshaper.git Fix for the issue #2942 : Fatal error when select using filters and use object from object browser --- diff --git a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp index b9f632956..aaf4744de 100644 --- a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp +++ b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp @@ -48,6 +48,9 @@ bool FiltersPlugin_OnPlane::isSupported(GeomAPI_Shape::ShapeType theType) const GeomPlanePtr getPlane(AttributeSelectionPtr theAttr) { GeomShapePtr aGeom = theAttr->value(); + if (!aGeom.get()) { // construction plane, #2942 + aGeom = theAttr->context()->shape(); + } GeomFacePtr aFace(new GeomAPI_Face(aGeom)); return aFace->getPlane(); }