forked from mia/Aegisub
Fix wxGTK assertion failure in audio_karaoke.cpp
Originally committed to SVN as r5841.
This commit is contained in:
parent
4bd34ee32f
commit
a0b74f4424
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ void AudioKaraoke::RenderText() {
|
||||||
int w, h;
|
int w, h;
|
||||||
split_area->GetClientSize(&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);
|
rendered_line = wxBitmap(w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue