From 384130ea659c38d6e7e95ee9c964dd6a3b1eabc0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 10 Sep 2019 10:15:07 +0300 Subject: [PATCH] Length to control points in pixels. Convert to pattern units. --HG-- branch : develop --- src/libs/vformat/vpatternrecipe.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/vformat/vpatternrecipe.cpp b/src/libs/vformat/vpatternrecipe.cpp index e300a00d3..b5a193351 100644 --- a/src/libs/vformat/vpatternrecipe.cpp +++ b/src/libs/vformat/vpatternrecipe.cpp @@ -548,10 +548,10 @@ QDomElement VPatternRecipe::Spline(const VToolRecord &record) SetAttribute(step, AttrAngle2Value, spl.GetEndAngle()); SetAttribute(step, AttrLength1, spl.GetC1LengthFormula()); - SetAttribute(step, AttrLength1Value, spl.GetC1Length()); + SetAttribute(step, AttrLength1Value, qApp->fromPixel(spl.GetC1Length())); SetAttribute(step, AttrLength2, spl.GetC2LengthFormula()); - SetAttribute(step, AttrLength2Value, spl.GetC2Length()); + SetAttribute(step, AttrLength2Value, qApp->fromPixel(spl.GetC2Length())); CurveAttributes(step, tool); @@ -646,10 +646,10 @@ QDomElement VPatternRecipe::SplinePath(const VToolRecord &record) SetAttribute(node, AttrAngle2Value, pathNode.Angle2()); SetAttribute(node, AttrLength1, pathNode.Length1Formula()); - SetAttribute(node, AttrLength1Value, pathNode.Length1()); + SetAttribute(node, AttrLength1Value, qApp->fromPixel(pathNode.Length1())); SetAttribute(node, AttrLength2, pathNode.Length2Formula()); - SetAttribute(node, AttrLength2Value, pathNode.Length2()); + SetAttribute(node, AttrLength2Value, qApp->fromPixel(pathNode.Length2())); nodes.appendChild(node); }