diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-09-10 09:22:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-09-10 09:22:50 +0100 |
| commit | 4743bb988b2d60e235da7027dddb90032812e335 (patch) | |
| tree | 4489effc9d5c383cd6e541ace7b770a911b2363c /src/lib | |
| parent | 949480aface3d28455da20abed0b5981e0185016 (diff) | |
Fix loading of 1.x films.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/subtitle_content.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/subtitle_content.cc b/src/lib/subtitle_content.cc index 24b4694e8..0e5661945 100644 --- a/src/lib/subtitle_content.cc +++ b/src/lib/subtitle_content.cc @@ -65,8 +65,13 @@ SubtitleContent::SubtitleContent (shared_ptr<const Film> f, cxml::ConstNodePtr n , _subtitle_y_offset (0) , _subtitle_scale (1) { - if (version >= 7) { + if (version >= 32) { _use_subtitles = node->bool_child ("UseSubtitles"); + } else { + _use_subtitles = false; + } + + if (version >= 7) { _subtitle_x_offset = node->number_child<float> ("SubtitleXOffset"); _subtitle_y_offset = node->number_child<float> ("SubtitleYOffset"); } else { |
