Make sure DELAYS come before STOPS.

This commit is contained in:
Jason Felds
2011-01-10 22:45:48 -05:00
parent 45b1664147
commit 8b4d758e4c
+5 -1
View File
@@ -54,7 +54,11 @@ struct StopSegment
return true;
}
bool operator!=( const StopSegment &other ) const { return !operator==(other); }
bool operator<( const StopSegment &other ) const { return m_iStartRow < other.m_iStartRow; }
bool operator<( const StopSegment &other ) const
{
return ( m_iStartRow < other.m_iStartRow ) ||
( m_iStartRow == other.m_iStartRow && m_bDelay );
}
};
/* This only supports simple time signatures. The upper number (called the numerator here, though this isn't