From 6817143d2befe5d6c0045a459affad7cbdc5543d Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Thu, 9 Feb 2012 13:10:36 +0000 Subject: [PATCH] width becomes fTimeSpan (in response to an ANSWER-ME). Avoids confusion with 'width' in the label, which is a pixel width of the label's text. --- src/LabelTrack.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/LabelTrack.cpp b/src/LabelTrack.cpp index 3ff0cac5f..71aebec7f 100644 --- a/src/LabelTrack.cpp +++ b/src/LabelTrack.cpp @@ -1220,18 +1220,16 @@ void LabelStruct::AdjustEdge( int iEdge, double fNewTime) // We're moving the label. Adjust both left and right edge. void LabelStruct::MoveLabel( int iEdge, double fNewTime) { - // ANSWER-ME: Vigilant Sentry notes this "width" shadows the member var of same name. - // Is that what we actually want? - double width = getDuration(); + double fTimeSpan = getDuration(); if( iEdge < 0 ) { t = fNewTime; - t1 = fNewTime+width; + t1 = fNewTime+fTimeSpan; } else { - t = fNewTime-width; + t = fNewTime-fTimeSpan; t1 = fNewTime; } updated = true;