Skip to content
Snippets Groups Projects
Commit 227bfff0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

manual fix

parent 58a402ee
No related branches found
No related tags found
1 merge request!2655further compactification of writeTo
Pipeline #150633 passed
......@@ -262,20 +262,14 @@ void ScanItem::readFrom(QXmlStreamReader* r)
while (r->readNextStartElement()) {
QString tag = r->name().toString();
if (tag == Tag::BaseData) {
SourceItem::readFrom(r);
XML::gotoEndElementOfTag(r, tag);
// footprint (moved to base class since v21 (version == 2))
} else if (version == 1 && tag == Tag::Footprint) {
if (tag == Tag::BaseData)
XML::readBaseElement<SourceItem>(r, this);
else if (version == 1 && tag == Tag::Footprint)
XML::readTaggedElement(r, tag, m_footprint);
// footprint groupbox: is expanded? (moved to base class since v21 (version == 2))
} else if (version == 1 && tag == Tag::ExpandFootprintGroupbox)
else if (version == 1 && tag == Tag::ExpandFootprintGroupbox)
expandFootprint = XML::readTaggedBool(r, tag);
else if (tag == Tag::GrazingScan)
XML::readTaggedElement(r, tag, *m_grazing_scan_item);
else
r->skipCurrentElement();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment