summaryrefslogtreecommitdiff
path: root/chordNote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chordNote.cpp')
-rw-r--r--chordNote.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/chordNote.cpp b/chordNote.cpp
index 1fa7549..3f1f795 100644
--- a/chordNote.cpp
+++ b/chordNote.cpp
@@ -96,8 +96,11 @@ void ChordNote::print(){
// Trim all timings to milliseconds
void ChordNote::trim(){
- start = start/1000000;
- end = end/1000000;
+ start = start/1000;
+ if (end != 0)
+ {
+ end = end / 1000;
+ }
}
// }}}