1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-21 13:41:21 +01:00

Fix bug 331 (P3).

This commit is contained in:
v.audacity
2012-08-03 22:59:25 +00:00
parent ebb4f530bb
commit 29f1325c75
3 changed files with 13 additions and 0 deletions

View File

@@ -2162,6 +2162,9 @@ bool LabelTrack::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
else if (!wxStrcmp(attr, wxT("minimized")) &&
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
SetMinimized(nValue != 0);
else if (!wxStrcmp(attr, wxT("isSelected")) &&
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
this->SetSelected(nValue != 0);
}
return true;
@@ -2188,6 +2191,7 @@ void LabelTrack::WriteXML(XMLWriter &xmlFile)
xmlFile.WriteAttr(wxT("numlabels"), len);
xmlFile.WriteAttr(wxT("height"), this->GetActualHeight());
xmlFile.WriteAttr(wxT("minimized"), this->GetMinimized());
xmlFile.WriteAttr(wxT("isSelected"), this->GetSelected());
for (i = 0; i < len; i++) {
xmlFile.StartTag(wxT("label"));