Salome HOME
ModuleBase_ViewerPrs is wrapped into shared_ptr.
[modules/shaper.git] / src / PartSet / PartSet_FilterInfinite.cpp
index 7b8d328bac88f44067bb6cbdb6e478f5c09f3539..ce873e62e98affbbff489c2dee0036dde6a56d72 100755 (executable)
@@ -27,7 +27,7 @@ Standard_Boolean PartSet_FilterInfinite::IsOk(const Handle(SelectMgr_EntityOwner
 {
   Standard_Boolean aValid = Standard_True;
 
-  ModuleBase_ViewerPrs aPrs;
+  ModuleBase_ViewerPrsPtr aPrs(new ModuleBase_ViewerPrs());
   myWorkshop->selection()->fillPresentation(aPrs, theOwner);
   ResultPtr aResult = myWorkshop->selection()->getResult(aPrs);
   // to filter infinite construction results