From 59e30c65697792ae1421bb9dc4986285455a0f22 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Wed, 16 Mar 2011 18:11:46 -0400 Subject: [PATCH] Ensure all initialized TimeSignatures are 1 min. --- src/TimingData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TimingData.h b/src/TimingData.h index 6190494cfb..8f52deb9b8 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -222,7 +222,7 @@ struct TimeSignatureSegment * @param n the numerator for the segment. */ TimeSignatureSegment( int r, int n ): m_iStartRow(max(0, r)), - m_iNumerator(n), m_iDenominator(4) {} + m_iNumerator(max(1, n)), m_iDenominator(4) {} /** * @brief Creates a Time Signature Segment at the given row with a supplied numerator & denominator. * @param r the starting row of the segment. @@ -230,7 +230,7 @@ struct TimeSignatureSegment * @param d the denonimator for the segment. */ TimeSignatureSegment( int r, int n, int d ): m_iStartRow(max(0, r)), - m_iNumerator(n), m_iDenominator(d) {} + m_iNumerator(max(1, n)), m_iDenominator(max(1, d)) {} /** * @brief The row in which the TimeSignatureSegment activates. */