mirror of https://github.com/odrling/Aegisub
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:
parent
d459b7089c
commit
b337fbd691
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue