Ensure all initialized TimeSignatures are 1 min.

This commit is contained in:
Jason Felds
2011-03-16 18:11:46 -04:00
parent 7f4815db37
commit 59e30c6569
+2 -2
View File
@@ -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.
*/