]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_WidgetFeaturePointSelector.cpp
Salome HOME
Issue #2027 Sketcher Trim Feature: preselection in reentrant operation
[modules/shaper.git] / src / PartSet / PartSet_WidgetFeaturePointSelector.cpp
index f2808b3ad2f929397e103f76106c99bd8ee8cc1a..e8c4abf8c71a1f949d7d5bca8e6ace9640e30e1a 100644 (file)
@@ -167,6 +167,9 @@ bool PartSet_WidgetFeaturePointSelector::fillFeature(
   if (theSelectedPrs.get() && theSelectedPrs->object().get())
     anObject = theSelectedPrs->object();
 
+  if (!anObject.get())
+    return aFilled;
+
   gp_Pnt aPnt = PartSet_Tools::convertClickToPoint(theEvent->pos(), theWindow->v3dView());
   double aX, anY;
   Handle(V3d_View) aView = theWindow->v3dView();