Skip to content
Extraits de code Groupes Projets
Valider c9408f28 rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

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.
parent cc309a3a
Aucune branche associée trouvée
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -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;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter