From fab41306acb37eb9a6e4aab9001b4e3bd7287be5 Mon Sep 17 00:00:00 2001 From: "Raine M. Ekman" Date: Wed, 12 Mar 2014 20:18:39 +0200 Subject: [PATCH] Export: check for end of export in ticks, not in tacts. This works better with time signature changes. --- include/song.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/song.h b/include/song.h index 7eaceb30c..f0d93e186 100644 --- a/include/song.h +++ b/include/song.h @@ -170,12 +170,12 @@ public: if ( m_exportLoop ) { return m_exporting == true && - m_playPos[Mode_PlaySong].getTact() >= length(); + m_playPos[Mode_PlaySong].getTicks() >= length() * ticksPerTact(); } else { return m_exporting == true && - m_playPos[Mode_PlaySong].getTact() >= length() + 1; + m_playPos[Mode_PlaySong].getTicks() >= ( length() + 1 ) * ticksPerTact(); } }