+ fix crash and allow to use values for pockets > 99
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5076 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -160,6 +160,8 @@ TopoDS_Shape SketchBased::makeFace(std::list<TopoDS_Wire>& wires) const
|
||||
for (std::list<TopoDS_Wire>::iterator it = wires.begin(); it != wires.end(); ++it) {
|
||||
BRepBuilderAPI_MakeFace mkInnerFace(*it);
|
||||
const TopoDS_Face& inner_face = mkInnerFace.Face();
|
||||
if (inner_face.IsNull())
|
||||
return inner_face; // failure
|
||||
gp_Dir inner_axis(0,0,1);
|
||||
BRepAdaptor_Surface adapt(inner_face);
|
||||
if (adapt.GetType() == GeomAbs_Plane) {
|
||||
|
||||
@@ -64,6 +64,7 @@ TaskPocketParameters::TaskPocketParameters(ViewProviderPocket *PocketView,QWidge
|
||||
PartDesign::Pocket* pcPocket = static_cast<PartDesign::Pocket*>(PocketView->getObject());
|
||||
double l = pcPocket->Length.getValue();
|
||||
|
||||
ui->doubleSpinBox->setMaximum(INT_MAX);
|
||||
ui->doubleSpinBox->setValue(l);
|
||||
ui->doubleSpinBox->selectAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user