]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2942 : Fatal error when select using filters and use object from...
authormpv <mpv@opencascade.com>
Mon, 15 Jul 2019 11:47:35 +0000 (14:47 +0300)
committermpv <mpv@opencascade.com>
Mon, 15 Jul 2019 11:47:35 +0000 (14:47 +0300)
src/FiltersPlugin/FiltersPlugin_OnPlane.cpp

index b9f6329560cf737813e4d96767aeacf886133400..aaf4744de6a5f8acfbbf370b4ec59ca8ed437a1c 100644 (file)
@@ -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();
 }