1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025582: SIGSEGV in thrusections of circle segments

Eliminating regressions

Fixed compilation warning ('di' : unreferenced formal parameter).

Added test bugs/modalg_5/bug25578
This commit is contained in:
azv
2015-01-23 15:55:56 +03:00
committed by bugmaster
parent 52ba6031e8
commit 76eeac70cf
3 changed files with 19 additions and 3 deletions

View File

@@ -398,8 +398,12 @@ void CreateKPart(const TopoDS_Edge& Edge1,const TopoDS_Edge& Edge2,
BW1.MakeWire(newW1);
BW2.MakeWire(newW2);
GeomAdaptor_Curve aC1Adaptor(C1);
GeomAdaptor_Curve aC2Adaptor(C2);
GeomAdaptor_Curve aC1Adaptor;
if (!C1.IsNull())
aC1Adaptor.Load(C1);
GeomAdaptor_Curve aC2Adaptor;
if (!C2.IsNull())
aC2Adaptor.Load(C2);
// calculate the surface
Handle(Geom_Surface) surface;