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 d459b7089c
commit b337fbd691
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 // Sets line up
AssDialogue *line = new AssDialogue; AssDialogue *line = new AssDialogue;
line->Actor = isComment ? "" : actor; line->Actor = isComment ? wxEmptyString : actor;
line->Comment = isComment; line->Comment = isComment;
line->Text = value; line->Text = value;
line->End = 0; line->End = 0;