diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 896ff7ac7..43c79c857 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -2871,6 +2871,7 @@ void VPattern::ParseToolEllipticalArc(VMainGraphicsScene *scene, QDomElement &do const QString frotationFix = initData.rotationAngle;//need for saving fixed formula; initData.color = GetParametrString(domElement, AttrColor, ColorBlack); initData.penStyle = GetParametrString(domElement, AttrPenStyle, TypeLineLine); + initData.approximationScale = GetParametrDouble(domElement, AttrAScale, "0"); VToolEllipticalArc::Create(initData); //Rewrite attribute formula. Need for situation when we have wrong formula. diff --git a/src/libs/ifc/schema/pattern/v0.7.3.xsd b/src/libs/ifc/schema/pattern/v0.7.3.xsd index db394df4d..3f047ea64 100644 --- a/src/libs/ifc/schema/pattern/v0.7.3.xsd +++ b/src/libs/ifc/schema/pattern/v0.7.3.xsd @@ -311,6 +311,7 @@ + diff --git a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp index 8325f4aad..a187b6562 100644 --- a/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp +++ b/src/libs/vtools/tools/drawTools/toolcurve/vtoolellipticalarc.cpp @@ -123,6 +123,7 @@ VToolEllipticalArc* VToolEllipticalArc::Create(QSharedPointer dialog initData.data = data; initData.parse = Document::FullParse; initData.typeCreation = Source::FromGui; + //initData.approximationScale = dialogTool->GetApproximationScale(); // For future use VToolEllipticalArc* point = Create(initData); if (point != nullptr) @@ -155,6 +156,7 @@ VToolEllipticalArc* VToolEllipticalArc::Create(VToolEllipticalArcInitData &initD initData.rotationAngle); elArc->SetColor(initData.color); elArc->SetPenStyle(initData.penStyle); + elArc->SetApproximationScale(initData.approximationScale); if (initData.typeCreation == Source::FromGui) {