From 8b4d758e4cba1d06aa16efbb789aab8239039c15 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 10 Jan 2011 22:45:48 -0500 Subject: [PATCH] Make sure DELAYS come before STOPS. --- src/TimingData.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TimingData.h b/src/TimingData.h index 86ac600492..942e4f821d 100644 --- a/src/TimingData.h +++ b/src/TimingData.h @@ -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