From a9322ee73fc88cf34bc4d99a17a67d61880f0e90 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 18 Apr 2017 18:49:33 +0200 Subject: [PATCH] Sketcher: Lock constraint bug fix --- src/Mod/Sketcher/Gui/CommandConstraints.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Sketcher/Gui/CommandConstraints.cpp b/src/Mod/Sketcher/Gui/CommandConstraints.cpp index 3046799225..3c513d0f38 100644 --- a/src/Mod/Sketcher/Gui/CommandConstraints.cpp +++ b/src/Mod/Sketcher/Gui/CommandConstraints.cpp @@ -1634,10 +1634,10 @@ void CmdSketcherConstrainLock::activated(int iMsg) openCommand("add fixed constraint"); Gui::Command::doCommand( Doc,"App.ActiveDocument.%s.addConstraint(Sketcher.Constraint('DistanceX',%d,%d,%f)) ", - selection[0].getFeatName(),GeoId,PosId,pnt.x); + selection[0].getFeatName(),GeoId[0],PosId[0],pnt.x); Gui::Command::doCommand( Doc,"App.ActiveDocument.%s.addConstraint(Sketcher.Constraint('DistanceY',%d,%d,%f)) ", - selection[0].getFeatName(),GeoId,PosId,pnt.y); + selection[0].getFeatName(),GeoId[0],PosId[0],pnt.y); lastconstraintindex+=2;