Port of PR #7405 from 3.x to master : Solves potential crash when an extended instruments.xml is written. It never happened because that function is disabled at 2018-06-05.

This commit is contained in:
Niek van den Berg 2021-02-15 17:13:18 +01:00
parent 8e1b4a6255
commit 5440beed7d

View file

@ -352,7 +352,7 @@ void InstrumentTemplate::write(XmlWriter& xml) const
ma.write(xml);
}
}
if (!family) {
if (family) {
xml.tag("family", family->id);
}
xml.etag();