mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
Remove indirection storing number scale in Ruler
This commit is contained in:
@@ -193,7 +193,7 @@ void SpectrumVRulerControls::DoUpdateVRuler(
|
||||
NumberScale scale(
|
||||
wt->GetSpectrogramSettings().GetScale( minFreq, maxFreq )
|
||||
.Reversal() );
|
||||
vruler->SetNumberScale(&scale);
|
||||
vruler->SetNumberScale(scale);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,6 @@ void WaveformVZoomHandle::DoZoom(
|
||||
const float halfrate = rate / 2;
|
||||
float maxFreq = 8000.0;
|
||||
const SpectrogramSettings &specSettings = pTrack->GetSpectrogramSettings();
|
||||
NumberScale scale;
|
||||
|
||||
bool bDragZoom = WaveTrackVZoomHandle::IsDragZooming(zoomStart, zoomEnd);
|
||||
// Add 100 if spectral to separate the kinds of zoom.
|
||||
|
||||
Reference in New Issue
Block a user