From b172ecbede672bdef982e5b45376ac3517440263 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 14 May 2013 16:22:54 +0100 Subject: Fix corpus tests wrt alphabetical sorting; fix some bugs with subtitles that were shown up. --- src/subtitle_asset.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/subtitle_asset.cc') diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 5decc1e3..ca91e2c7 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -386,7 +386,7 @@ SubtitleAsset::write_xml (ostream& s) const font->set_attribute ("Weight", "normal"); } - if (!subtitle || + if (!subtitle || font_changed || (last_in != (*i)->in() || last_out != (*i)->out() || last_fade_up_time != (*i)->fade_up_time() || @@ -412,6 +412,6 @@ SubtitleAsset::write_xml (ostream& s) const text->add_child_text ((*i)->text()); } - doc.write_to_stream_formatted (s); + doc.write_to_stream_formatted (s, "UTF-8"); } -- cgit v1.2.3