diff --git a/src/app/xml/vpattern.cpp b/src/app/xml/vpattern.cpp index a531b811a..62ee02e81 100644 --- a/src/app/xml/vpattern.cpp +++ b/src/app/xml/vpattern.cpp @@ -268,7 +268,7 @@ void VPattern::Parse(const Document &parse) { ChangeActivPP(GetParametrString(domElement, AttrName), Document::LiteParse); } - ParseDrawElement(sceneDraw, sceneDetail, domElement, parse); + ParseDrawElement(domElement, parse); break; case 1: // TagIncrements ParseIncrementsElement(domElement); @@ -762,8 +762,7 @@ void VPattern::customEvent(QEvent *event) * @param node node. * @param parse parser file mode. */ -void VPattern::ParseDrawElement(VMainGraphicsScene *sceneDraw, VMainGraphicsScene *sceneDetail, const QDomNode &node, - const Document &parse) +void VPattern::ParseDrawElement(const QDomNode &node, const Document &parse) { QStringList tags{TagCalculation, TagModeling, TagDetails}; QDomNode domNode = node.firstChild(); @@ -778,13 +777,13 @@ void VPattern::ParseDrawElement(VMainGraphicsScene *sceneDraw, VMainGraphicsScen { case 0: // TagCalculation data->ClearCalculationGObjects(); - ParseDrawMode(sceneDraw, sceneDetail, domElement, parse, Draw::Calculation); + ParseDrawMode(domElement, parse, Draw::Calculation); break; case 1: // TagModeling - ParseDrawMode(sceneDraw, sceneDetail, domElement, parse, Draw::Modeling); + ParseDrawMode(domElement, parse, Draw::Modeling); break; case 2: // TagDetails - ParseDetails(sceneDetail, domElement, parse); + ParseDetails(domElement, parse); break; default: qDebug()<<"Wrong tag name"<