X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_AISCurve.cxx;h=16364e6f8c2da028bc89eba840d4271d59555924;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=c8366ebc2e4da0e05d3e7dcc134df966fa1da522;hpb=ca0e09c1e1bb19c9855e2f3839243da36097ee1c;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_AISCurve.cxx b/src/HYDROGUI/HYDROGUI_AISCurve.cxx index c8366ebc..16364e6f 100755 --- a/src/HYDROGUI/HYDROGUI_AISCurve.cxx +++ b/src/HYDROGUI/HYDROGUI_AISCurve.cxx @@ -1,6 +1,6 @@ #include "HYDROGUI_AISCurve.h" -#include +#include #include @@ -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 )