Remove redundant check in AudioDispaly::SetZoomLevel

Originally committed to SVN as r6254.
This commit is contained in:
Thomas Goyne 2012-01-08 01:37:19 +00:00
parent f4c8bf429b
commit bf26c14999
1 changed files with 1 additions and 4 deletions

View File

@ -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);