+ fix build failure in debug build type
This commit is contained in:
parent
979d1299cc
commit
993a8a8583
|
@ -1168,13 +1168,20 @@ void ViewProviderSketch::moveConstraint(int constNum, const Base::Vector2D &toPo
|
|||
|
||||
const std::vector<Sketcher::Constraint *> &constrlist = getSketchObject()->Constraints.getValues();
|
||||
Constraint *Constr = constrlist[constNum];
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
int intGeoCount = getSketchObject()->getHighestCurveIndex() + 1;
|
||||
int extGeoCount = getSketchObject()->getExternalGeometryCount();
|
||||
#endif
|
||||
|
||||
// with memory allocation
|
||||
const std::vector<Part::Geometry *> geomlist = getSketchObject()->getSolvedSketch().extractGeometry(true, true);
|
||||
|
||||
#ifdef _DEBUG
|
||||
assert(int(geomlist.size()) == extGeoCount + intGeoCount);
|
||||
assert((Constr->First >= -extGeoCount && Constr->First < intGeoCount)
|
||||
|| Constr->First != Constraint::GeoUndef);
|
||||
#endif
|
||||
|
||||
if (Constr->Type == Distance || Constr->Type == DistanceX || Constr->Type == DistanceY ||
|
||||
Constr->Type == Radius) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user