mirror of https://github.com/odrling/Aegisub
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:
parent
c0d3cbf688
commit
d04bc6d9b4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue