Fixed moving a spline by dragging.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-02-26 19:19:30 +02:00
parent a9112a29cb
commit 773383ec70

View File

@ -92,11 +92,13 @@ void MoveSpline::Do(const VSpline &spl)
QDomElement domElement = doc->elementById(nodeId); QDomElement domElement = doc->elementById(nodeId);
if (domElement.isElement()) if (domElement.isElement())
{ {
doc->SetAttribute(domElement, AttrAngle1, QString().setNum(spl.GetStartAngle())); doc->SetAttribute(domElement, AttrPoint1, spl.GetP1().id());
doc->SetAttribute(domElement, AttrAngle2, QString().setNum(spl.GetEndAngle())); doc->SetAttribute(domElement, AttrPoint4, spl.GetP4().id());
doc->SetAttribute(domElement, AttrKAsm1, QString().setNum(spl.GetKasm1())); doc->SetAttribute(domElement, AttrAngle1, spl.GetStartAngleFormula());
doc->SetAttribute(domElement, AttrKAsm2, QString().setNum(spl.GetKasm2())); doc->SetAttribute(domElement, AttrAngle2, spl.GetEndAngleFormula());
doc->SetAttribute(domElement, AttrKCurve, QString().setNum(spl.GetKcurve())); doc->SetAttribute(domElement, AttrLength1, spl.GetC1LengthFormula());
doc->SetAttribute(domElement, AttrLength2, spl.GetC2LengthFormula());
doc->SetAttribute(domElement, AttrKCurve, spl.GetKcurve());
emit NeedLiteParsing(Document::LiteParse); emit NeedLiteParsing(Document::LiteParse);
} }