summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-14 16:22:54 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-14 16:22:54 +0100
commitb172ecbede672bdef982e5b45376ac3517440263 (patch)
treeca3330c6dfed482828b83be12588f06f4025f208 /src/subtitle_asset.cc
parent8526058d24faec5f83ffd66758fef8d8c8159f73 (diff)
Fix corpus tests wrt alphabetical sorting; fix some bugs with subtitles that were shown up.
Diffstat (limited to 'src/subtitle_asset.cc')
-rw-r--r--src/subtitle_asset.cc4
1 files changed, 2 insertions, 2 deletions
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");
}