X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fsubtitle_analysis.cc;h=f8254f00d62fa791742d097812445801e727a7d6;hp=91fec90b06cc70231de683da718bd51a081ad4de;hb=463496994d770577ff1e1ea6e7b1e4addb4252b2;hpb=cef7a679a59044a5c807768042deecfd56ec6fc2 diff --git a/src/lib/subtitle_analysis.cc b/src/lib/subtitle_analysis.cc index 91fec90b0..f8254f00d 100644 --- a/src/lib/subtitle_analysis.cc +++ b/src/lib/subtitle_analysis.cc @@ -50,6 +50,9 @@ SubtitleAnalysis::SubtitleAnalysis (boost::filesystem::path path) _bounding_box->width = bounding_box->number_child("Width"); _bounding_box->height = bounding_box->number_child("Height"); } + + _analysis_x_offset = f.number_child("AnalysisXOffset"); + _analysis_y_offset = f.number_child("AnalysisYOffset"); } @@ -69,6 +72,9 @@ SubtitleAnalysis::write (boost::filesystem::path path) const bounding_box->add_child("Height")->add_child_text(raw_convert(_bounding_box->height)); } + root->add_child("AnalysisXOffset")->add_child_text(raw_convert(_analysis_x_offset)); + root->add_child("AnalysisYOffset")->add_child_text(raw_convert(_analysis_y_offset)); + doc->write_to_file_formatted (path.string()); }