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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user