diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-12 09:10:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-12 09:14:09 +0100 |
| commit | b81241ce69a689629307832f802ac4faa6ed885f (patch) | |
| tree | 307eb7b6bb562553e6e92e8939d5c89f7111e66a /src/lib/subtitle_content.cc | |
| parent | 94056bf7f8fdef32da3cd78eff68d58560b4e6be (diff) | |
Move locale_convert into libdcp.
Diffstat (limited to 'src/lib/subtitle_content.cc')
| -rw-r--r-- | src/lib/subtitle_content.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/subtitle_content.cc b/src/lib/subtitle_content.cc index d6bf54aef..21bfd8a2d 100644 --- a/src/lib/subtitle_content.cc +++ b/src/lib/subtitle_content.cc @@ -224,8 +224,8 @@ SubtitleContent::as_xml (xmlpp::Node* root) const { boost::mutex::scoped_lock lm (_mutex); - root->add_child("UseSubtitles")->add_child_text (raw_convert<string> (_use)); - root->add_child("BurnSubtitles")->add_child_text (raw_convert<string> (_burn)); + root->add_child("UseSubtitles")->add_child_text (_use ? "1" : "0"); + root->add_child("BurnSubtitles")->add_child_text (_burn ? "1" : "0"); root->add_child("SubtitleXOffset")->add_child_text (raw_convert<string> (_x_offset)); root->add_child("SubtitleYOffset")->add_child_text (raw_convert<string> (_y_offset)); root->add_child("SubtitleXScale")->add_child_text (raw_convert<string> (_x_scale)); @@ -234,8 +234,8 @@ SubtitleContent::as_xml (xmlpp::Node* root) const root->add_child("Red")->add_child_text (raw_convert<string> (_colour.r)); root->add_child("Green")->add_child_text (raw_convert<string> (_colour.g)); root->add_child("Blue")->add_child_text (raw_convert<string> (_colour.b)); - root->add_child("Outline")->add_child_text (raw_convert<string> (_outline)); - root->add_child("Shadow")->add_child_text (raw_convert<string> (_shadow)); + root->add_child("Outline")->add_child_text (_outline ? "1" : "0"); + root->add_child("Shadow")->add_child_text (_shadow ? "1" : "0"); root->add_child("EffectRed")->add_child_text (raw_convert<string> (_effect_colour.r)); root->add_child("EffectGreen")->add_child_text (raw_convert<string> (_effect_colour.g)); root->add_child("EffectBlue")->add_child_text (raw_convert<string> (_effect_colour.b)); |
