Salome HOME
Added interfaces to OCC data and algos: features must not depend on OCC
[modules/shaper.git] / src / PartSet / PartSet_OperationSketchBase.cpp
index c5b70b0e00d49e2615606c9a9b790d522b6685bb..0201255b81cc0b51778e9a61f56c66e31f9c281d 100644 (file)
@@ -32,7 +32,7 @@ PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
 const TopoDS_Shape& PartSet_OperationSketchBase::preview() const
 {
   shared_ptr<SketchPlugin_Feature> aFeature = dynamic_pointer_cast<SketchPlugin_Feature>(feature());
-  return aFeature->preview();
+  return *(static_cast<TopoDS_Shape*>(aFeature->preview()->implementation()));
 }
 
 /*!