mirror of https://github.com/odrling/Aegisub
Fix wxGTK assertion failure in audio_karaoke.cpp
Originally committed to SVN as r5841.
This commit is contained in:
parent
4bd34ee32f
commit
a0b74f4424
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue