mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 16:14:00 +01:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user