Remove redundant check in AudioDispaly::SetZoomLevel
Originally committed to SVN as r6254.
This commit is contained in:
parent
f4c8bf429b
commit
bf26c14999
1 changed files with 1 additions and 4 deletions
|
@ -716,10 +716,7 @@ void AudioDisplay::SetZoomLevel(int new_zoom_level)
|
|||
pixel_samples = new_samples_per_pixel;
|
||||
audio_renderer->SetSamplesPerPixel(pixel_samples);
|
||||
|
||||
if (provider)
|
||||
pixel_audio_width = provider->GetNumSamples() / pixel_samples + 1;
|
||||
else
|
||||
pixel_audio_width = 1;
|
||||
pixel_audio_width = provider->GetNumSamples() / pixel_samples + 1;
|
||||
|
||||
scrollbar->ChangeLengths(pixel_audio_width, client_width);
|
||||
timeline->ChangeZoom(pixel_samples);
|
||||
|
|
Loading…
Reference in a new issue