Fix loading unicode actor names from plain text files

'isComment ? "" : actor' results in actor decaying to a const char * in
the local charset rather than converting "" to wxString, which breaks
things when unicode is involved.
This commit is contained in:
Thomas Goyne 2013-01-11 08:30:33 -08:00
parent cc309a3a55
commit c9408f28ec
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ void TXTSubtitleFormat::ReadFile(AssFile *target, wxString const& filename, wxSt
// Sets line up
AssDialogue *line = new AssDialogue;
line->Actor = isComment ? "" : actor;
line->Actor = isComment ? wxEmptyString : actor;
line->Comment = isComment;
line->Text = value;
line->End = 0;