From 88793a0d1552fdabe260b05bc1248b72f5921686 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 22 Dec 2014 16:11:32 +0300 Subject: [PATCH] Fix a bug with improper set of default value for "required number of segments" parameter of BSplineRestriction operator of ShapeProcess function: "0" value leads to a SIGSEGV --- src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx b/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx index 6c3cdfa4c..716b79286 100755 --- a/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx +++ b/src/RepairGUI/RepairGUI_ShapeProcessDlg.cxx @@ -259,6 +259,7 @@ void RepairGUI_ShapeProcessDlg::init() myBSplineDegree = new SalomeApp_IntSpinBox( w ); myBSplineSegments = new SalomeApp_IntSpinBox( w ); + initSpinBox( myBSplineSegments, 1, 1000, 1); myBSpline2DCont = new QComboBox( w ); myBSpline2DCont->addItems( aContinueties ); myBSpline3DCont = new QComboBox( w ); -- 2.39.2