diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-15 09:30:31 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-15 09:30:31 +0000 |
| commit | 19e00ec24925192d354dd15961b9f067c790edbf (patch) | |
| tree | 6c9be817f14f27799af2af61f95f686df3e89b53 /src | |
| parent | 8951dd59e685b112e28a0d72edcabd4524e0289d (diff) | |
Fix code and tests so that SubtitleString::v_position is between 0 and 1 (not a percentage) as the comment says it should be.
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.cc b/src/text.cc index a846d961..d18066dd 100644 --- a/src/text.cc +++ b/src/text.cc @@ -45,7 +45,7 @@ Text::Text (boost::shared_ptr<const cxml::Node> node, int tcr) if (!x) { x = node->number_attribute<float> ("Vposition"); } - v_position = x.get (); + v_position = x.get () / 100; optional<string> v = node->optional_string_attribute ("VAlign"); if (!v) { |
