Don't paint the audio display if it hasn't been fully initialized due to audio not being open

Originally committed to SVN as r6771.
This commit is contained in:
Thomas Goyne 2012-05-13 00:58:06 +00:00
parent c0d3cbf688
commit d04bc6d9b4
1 changed files with 2 additions and 0 deletions

View File

@ -788,6 +788,8 @@ END_EVENT_TABLE()
void AudioDisplay::OnPaint(wxPaintEvent&) void AudioDisplay::OnPaint(wxPaintEvent&)
{ {
if (!audio_renderer_provider) return;
wxAutoBufferedPaintDC dc(this); wxAutoBufferedPaintDC dc(this);
wxRect audio_bounds(0, audio_top, GetClientSize().GetWidth(), audio_height); wxRect audio_bounds(0, audio_top, GetClientSize().GetWidth(), audio_height);