mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 16:14:00 +01:00 
			
		
		
		
	Fix for ruler elements disappearing at high zoom beyond time 5:57:54.84.
This commit is contained in:
		@@ -1047,7 +1047,9 @@ void Ruler::Update(TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, lo
 | 
			
		||||
      // Major ticks
 | 
			
		||||
      double d = mMin - UPP/2;
 | 
			
		||||
      double lastD = d;
 | 
			
		||||
      int majorInt = (int)floor(sg * d / mMajor);
 | 
			
		||||
      // using ints for majorint doesn't work, as 
 | 
			
		||||
      // majorint will overflow and be negative at high zoom.
 | 
			
		||||
      double majorInt = floor(sg * d / mMajor);
 | 
			
		||||
      i = -1;
 | 
			
		||||
      while(i <= mLength) {
 | 
			
		||||
         double warpfactor;
 | 
			
		||||
@@ -1060,8 +1062,8 @@ void Ruler::Update(TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, lo
 | 
			
		||||
         lastD = d;
 | 
			
		||||
         d += UPP/warpfactor;
 | 
			
		||||
         
 | 
			
		||||
         if ((int)floor(sg * d / mMajor) > majorInt) {
 | 
			
		||||
            majorInt = (int)floor(sg * d / mMajor);
 | 
			
		||||
         if (floor(sg * d / mMajor) > majorInt) {
 | 
			
		||||
            majorInt = floor(sg * d / mMajor);
 | 
			
		||||
            Tick(i, sg * majorInt * mMajor, true, false);
 | 
			
		||||
         }
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user