Mercurial > hg > svcore
changeset 1682:4ca784e5033e single-point
Restore always-on export of label even if empty - backward compatibility makes testing easier
author | Chris Cannam |
---|---|
date | Wed, 03 Apr 2019 16:03:18 +0100 (2019-04-03) |
parents | c170b8d0433c |
children | e4f31f506116 |
files | base/Event.h |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)