Missing files.
[dcpomatic.git] / src / lib / subtitle_analysis.cc
index 91fec90b06cc70231de683da718bd51a081ad4de..f8254f00d62fa791742d097812445801e727a7d6 100644 (file)
@@ -50,6 +50,9 @@ SubtitleAnalysis::SubtitleAnalysis (boost::filesystem::path path)
                _bounding_box->width = bounding_box->number_child<double>("Width");
                _bounding_box->height = bounding_box->number_child<double>("Height");
        }
+
+       _analysis_x_offset = f.number_child<double>("AnalysisXOffset");
+       _analysis_y_offset = f.number_child<double>("AnalysisYOffset");
 }
 
 
@@ -69,6 +72,9 @@ SubtitleAnalysis::write (boost::filesystem::path path) const
                bounding_box->add_child("Height")->add_child_text(raw_convert<string>(_bounding_box->height));
        }
 
+       root->add_child("AnalysisXOffset")->add_child_text(raw_convert<string>(_analysis_x_offset));
+       root->add_child("AnalysisYOffset")->add_child_text(raw_convert<string>(_analysis_y_offset));
+
        doc->write_to_file_formatted (path.string());
 }