From: vsr Date: Mon, 22 Dec 2014 13:11:32 +0000 (+0300) Subject: Fix a bug with improper set of default value for "required number of segments" parame... X-Git-Tag: V7_6_0a1~60^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88793a0d1552fdabe260b05bc1248b72f5921686;p=modules%2Fgeom.git 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 --- 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 );