diff --git a/ChangeLog.txt b/ChangeLog.txt index f19a42f0a..7a3f1487a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -38,6 +38,7 @@ - [#962] Failed to load LibEGL. - [#963] Bug in tool Point intersect curve and axis. - [#964] Assign operator crashes math parser. +- [#966] Unable to control Approximation scale for arc with length. # Version 0.6.1 October 23, 2018 - [#885] Regression. Broken support for multi size measurements. diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 1a5c2c93c..a86cf22e7 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -3164,6 +3164,7 @@ void VPattern::ParseToolArcWithLength(VMainGraphicsScene *scene, QDomElement &do const QString lengthFix = initData.length;//need for saving fixed length; initData.color = GetParametrString(domElement, AttrColor, ColorBlack); initData.penStyle = GetParametrString(domElement, AttrPenStyle, TypeLineLine); + initData.approximationScale = GetParametrDouble(domElement, AttrAScale, QChar('0')); VToolArcWithLength::Create(initData); //Rewrite attribute formula. Need for situation when we have wrong formula. diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp index 1a9198f4d..7ba41d04e 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolarcwithlength.cpp @@ -128,6 +128,7 @@ VToolArcWithLength *VToolArcWithLength::Create(VToolArcWithLengthInitData &initD VArc *arc = new VArc(calcLength, initData.length, c, calcRadius, initData.radius, calcF1, initData.f1); arc->SetColor(initData.color); arc->SetPenStyle(initData.penStyle); + arc->SetApproximationScale(initData.approximationScale); if (initData.typeCreation == Source::FromGui) {