Sketcher: fix an issue with autoconstraints and improve implementation

This commit is contained in:
logari81
2012-07-17 12:47:08 +02:00
parent beb4fe82b4
commit 227cb0ebc8
3 changed files with 58 additions and 60 deletions

View File

@@ -1160,7 +1160,8 @@ public:
setPositionText(onSketchPos, text);
sketchgui->drawEdit(EditCurve);
if (seekAutoConstraint(sugConstr2, onSketchPos, Base::Vector2D(0.f,0.f), CURVE)) {
if (seekAutoConstraint(sugConstr2, onSketchPos, Base::Vector2D(0.f,0.f),
AutoConstraint::CURVE)) {
renderSuggestConstraintsCursor(sugConstr2);
return;
}