Fix thinko when writing XML.
authorCarl Hetherington <cth@carlh.net>
Sat, 13 Jan 2018 22:20:38 +0000 (22:20 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Jan 2018 00:24:42 +0000 (00:24 +0000)
src/lib/subtitle_content.cc

index dbe6dd43a2ce692a158929e9408c74e8b366bfaf..9e3ed322969b71b3e65fedec84d5f0824b510b41 100644 (file)
@@ -280,13 +280,13 @@ SubtitleContent::as_xml (xmlpp::Node* root) const
        if (_effect) {
                switch (*_effect) {
                case dcp::NONE:
-                       root->add_child("none");
+                       root->add_child("Effect")->add_child_text("none");
                        break;
                case dcp::BORDER:
-                       root->add_child("outline");
+                       root->add_child("Effect")->add_child_text("outline");
                        break;
                case dcp::SHADOW:
-                       root->add_child("shadow");
+                       root->add_child("Effect")->add_child_text("shadow");
                        break;
                }
        }