diff --git a/aegisub/src/audio_display.cpp b/aegisub/src/audio_display.cpp index cc3fd9bdc..826ca7f35 100644 --- a/aegisub/src/audio_display.cpp +++ b/aegisub/src/audio_display.cpp @@ -1463,7 +1463,7 @@ void AudioDisplay::OnPaint(wxPaintEvent& event) { DoUpdateImage(); wxPaintDC dc(this); - dc.DrawBitmap(*origImage,0,0); + if (origImage) dc.DrawBitmap(*origImage,0,0); } @@ -1556,7 +1556,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) { if (player && !player->IsPlaying() && origImage) { // Draw bg wxClientDC dc(this); - dc.DrawBitmap(*origImage,0,0); + if (origImage) dc.DrawBitmap(*origImage,0,0); if (inside) { // Draw cursor