|
From: Tapio V. <aa...@us...> - 2011-01-12 20:39:12
|
Module: editor
Branch: master
Commit: f547f4197e94fd607c43589e44b1d529872209cd
Author: Tapio Vierros <tap...@gm...>
Date: Wed Jan 12 22:37:39 2011 +0200
Add lineBreak flags to notes parsed from US TXT.
---
songparser-txt.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/songparser-txt.cc b/songparser-txt.cc
index 072389e..e622846 100644
--- a/songparser-txt.cc
+++ b/songparser-txt.cc
@@ -149,6 +149,9 @@ bool SongParser::txtParseNote(std::string line, VocalTrack &vocal) {
if (notes.empty()) return true; // Ignore sleeps at song beginning
n.begin = n.end = prevtime; // Normalize sleep notes
}
+ // Add lineBreak flag for notes preceding SLEEPs
+ if (notes.size() > 0 && n.type == Note::SLEEP)
+ n.lineBreak = true;
notes.push_back(n);
return true;
}
|