From 5c34929600978a880db802d953edda1d8db6c60a Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 26 Jul 2011 11:35:58 -0400 Subject: [PATCH] Fix timing segment scaling. When in doubt, use the direct approach. --- src/TimingData.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/TimingData.cpp b/src/TimingData.cpp index 5831306c26..65df49d924 100644 --- a/src/TimingData.cpp +++ b/src/TimingData.cpp @@ -1011,13 +1011,11 @@ void TimingData::ScaleRegion( float fScale, int iStartIndex, int iEndIndex, bool int length = iEndIndex - iStartIndex; int newLength = lrintf( fScale * length ); - // TODO: Confirm this works as intended. for (unsigned i = 0; i < NUM_TimingSegmentType; i++) { - vector &segs = this->allTimingSegments[i]; - for (unsigned j = 0; j < segs.size(); j++) + for (unsigned j = 0; j < this->allTimingSegments[i].size(); j++) { - segs[i][j].Scale(iStartIndex, length, newLength); + this->allTimingSegments[i][j]->Scale(iStartIndex, length, newLength); } }