+ 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:
wmayer
2011-10-27 14:34:13 +00:00
parent 61a9c34955
commit 92a48eb14a
2 changed files with 3 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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();