Fixed scrolling of audio display when it is resized. Fixes #524

Originally committed to SVN as r1771.
This commit is contained in:
Rodrigo Braz Monteiro 2008-01-19 00:39:42 +00:00
parent 0537e36bd3
commit 52d47c32e2
1 changed files with 2 additions and 0 deletions

View File

@ -1914,6 +1914,8 @@ void AudioDisplay::OnSize(wxSizeEvent &event) {
h -= Options.AsBool(_T("Audio Draw Timeline")) ? 20 : 0; h -= Options.AsBool(_T("Audio Draw Timeline")) ? 20 : 0;
// Update image // Update image
UpdateSamples();
UpdatePosition(PositionSample / samples);
UpdateImage(); UpdateImage();
// Update scrollbar // Update scrollbar