MidiTime/Pattern: fixed divisions by zero with time sigs 1/16+
Setting time signatures 1/16+ lead to divisions by zero in two places.
Fixed this by adding according qMax() call (closes #2818125).
Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
(cherry picked from commit cb72bf2260)
This commit is contained in:
@@ -135,7 +135,7 @@ public:
|
||||
|
||||
static int stepsPerTact( void )
|
||||
{
|
||||
return ticksPerTact() / DefaultBeatsPerTact;
|
||||
return qMax( 1, ticksPerTact() / DefaultBeatsPerTact );
|
||||
}
|
||||
|
||||
static void setTicksPerTact( tick_t _tpt )
|
||||
|
||||
Reference in New Issue
Block a user