mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Bug 1820: save top note for note tracks
This commit is contained in:
parent
53823270e0
commit
88d26329bc
@ -898,6 +898,9 @@ bool NoteTrack::HandleXMLTag(const wxChar *tag, const wxChar **attrs)
|
||||
else if (!wxStrcmp(attr, wxT("bottomnote")) &&
|
||||
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
|
||||
SetBottomNote(nValue);
|
||||
else if (!wxStrcmp(attr, wxT("topnote")) &&
|
||||
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue))
|
||||
SetTopNote(nValue);
|
||||
else if (!wxStrcmp(attr, wxT("data"))) {
|
||||
std::string s(strValue.mb_str(wxConvUTF8));
|
||||
std::istringstream data(s);
|
||||
@ -940,6 +943,7 @@ void NoteTrack::WriteXML(XMLWriter &xmlFile) const
|
||||
xmlFile.WriteAttr(wxT("velocity"), (double) saveme->mVelocity);
|
||||
#endif
|
||||
xmlFile.WriteAttr(wxT("bottomnote"), saveme->mBottomNote);
|
||||
xmlFile.WriteAttr(wxT("topnote"), saveme->mTopNote);
|
||||
xmlFile.WriteAttr(wxT("data"), wxString(data.str().c_str(), wxConvUTF8));
|
||||
xmlFile.EndTag(wxT("notetrack"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user