Fix wxGTK assertion failure in audio_karaoke.cpp

Originally committed to SVN as r5841.
This commit is contained in:
Thomas Goyne 2011-11-09 02:29:36 +00:00
parent 4bd34ee32f
commit a0b74f4424

View file

@ -162,7 +162,7 @@ void AudioKaraoke::RenderText() {
int w, h;
split_area->GetClientSize(&w, &h);
if (split_area->GetClientSize() != rendered_line.GetSize()) {
if (!rendered_line.IsOk() || split_area->GetClientSize() != rendered_line.GetSize()) {
rendered_line = wxBitmap(w, h);
}