# HG changeset patch # User Chris Cannam # Date 1554303798 -3600 # Node ID 4ca784e5033ebda34b62b50cd668241f6395f61a # Parent c170b8d0433cc58e9144c97731706e4f60b7ca25 Restore always-on export of label even if empty - backward compatibility makes testing easier diff -r c170b8d0433c -r 4ca784e5033e base/Event.h --- a/base/Event.h Fri Mar 29 19:16:43 2019 +0000 +++ b/base/Event.h Wed Apr 03 16:03:18 2019 +0100 @@ -287,10 +287,10 @@ stream << QString("referenceFrame=\"%1\" ") .arg(m_referenceFrame); } - if (m_label != "") { - stream << QString("label=\"%1\" ") - .arg(XmlExportable::encodeEntities(m_label)); - } + + stream << QString("label=\"%1\" ") + .arg(XmlExportable::encodeEntities(m_label)); + if (m_uri != QString()) { stream << QString("%1=\"%2\" ") .arg(opts.uriAttributeName)