Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / PartSet / PartSet_OperationSketch.cpp
index b98436a07f761417316706b4fcd9671c0ccb35e9..6deab5b2801ddc8ff68401fefd96e418e62be863 100644 (file)
@@ -48,9 +48,9 @@ PartSet_OperationSketch::~PartSet_OperationSketch()
 {
 }
 
-FeaturePtr PartSet_OperationSketch::sketch() const
+CompositeFeaturePtr PartSet_OperationSketch::sketch() const
 {
-  return feature();
+  return boost::dynamic_pointer_cast<ModelAPI_CompositeFeature>(feature());
 }
 
 void PartSet_OperationSketch::mousePressed(QMouseEvent* theEvent, Handle_V3d_View theView,