Export: check for end of export in ticks, not in tacts.

This works better with time signature changes.
This commit is contained in:
Raine M. Ekman
2014-03-12 20:18:39 +02:00
parent 6a86fccfa1
commit fab41306ac

View File

@@ -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();
}
}