Fix issue with elliptical arc. It should read but ignore attribute 'aScale'.
ref #768. --HG-- branch : develop
This commit is contained in:
parent
604baa61d3
commit
8dbcfb4874
|
@ -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.
|
||||
|
|
|
@ -311,6 +311,7 @@
|
|||
<xs:attribute name="color" type="colors"/>
|
||||
<xs:attribute name="penStyle" type="curvePenStyle"/>
|
||||
<xs:attribute name="length" type="xs:string"/>
|
||||
<xs:attribute name="aScale" type="ApproximationScaleType"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="spline" minOccurs="0" maxOccurs="unbounded">
|
||||
|
|
|
@ -123,6 +123,7 @@ VToolEllipticalArc* VToolEllipticalArc::Create(QSharedPointer<DialogTool> 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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user