Salome HOME
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_AISCurve.cxx
index c8366ebc2e4da0e05d3e7dcc134df966fa1da522..16364e6f8c2da028bc89eba840d4271d59555924 100755 (executable)
@@ -1,6 +1,6 @@
 #include "HYDROGUI_AISCurve.h"
 
-#include <HYDROOperations_BSpline.h>
+#include <HYDROData_BSplineOperation.h>
 
 #include <CurveCreator_Curve.hxx>
 
@@ -106,7 +106,7 @@ void HYDROGUI_AISCurveSection::buildSection()
 
     if( aSectSize > 1 )
     {
-      HYDROOperations_BSpline aBSpline( aPoints, aSectIsClosed );
+      HYDROData_BSplineOperation aBSpline( aPoints, 0, aSectIsClosed );
       TopoDS_Edge anEdge = BRepBuilderAPI_MakeEdge( aBSpline.Curve() ).Edge();
 
       TopoDS_Wire aWire = BRepBuilderAPI_MakeWire( anEdge ).Wire();
@@ -174,6 +174,7 @@ HYDROGUI_AISCurve::HYDROGUI_AISCurve( CurveCreator_Curve* theCurve, Handle_AIS_I
 
 HYDROGUI_AISCurve::~HYDROGUI_AISCurve(void)
 {
+  myCurve->removeListener();
 }
 
 void HYDROGUI_AISCurve::setCurve( CurveCreator_Curve* theCurve )