Don't make an attempt to draw the play cursor if oldCurPos < 0 (usually means playback has stopped.). This fixes an assert on OS X and in general is probably a good thing.. I won't close the ticket until this has been tested on windows updates #1016.

Originally committed to SVN as r3993.
This commit is contained in:
Amar Takhar 2010-01-18 08:34:06 +00:00
parent cfe1faa6ad
commit 3b08a0c51b
1 changed files with 1 additions and 1 deletions

View File

@ -1952,7 +1952,7 @@ void AudioDisplay::OnSize(wxSizeEvent &event) {
///////////////
// Timer event
void AudioDisplay::OnUpdateTimer(wxTimerEvent &event) {
if (!origImage)
if (!origImage && oldCurPos > 0)
return;
// Get lock and check if it's OK