summaryrefslogtreecommitdiff
path: root/src/vertical_reference.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-06 13:29:36 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-06 13:29:36 +0100
commit4ada3e7583dfdc658dbebca3c3603be1e3477c12 (patch)
tree0516fdd142b79e7083ed3d455fe45fffce26a9a8 /src/vertical_reference.cc
parent86440b2afe0a2b83a7e810f37b1f65dbddee90e8 (diff)
Template-ize collect so that any container can be used.
Add new vertical reference of TOP_OF_SUBTITLE, and use references with line numbers as well as proportional specifiers. Add a couple of methods to MetricTime.
Diffstat (limited to 'src/vertical_reference.cc')
-rw-r--r--src/vertical_reference.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vertical_reference.cc b/src/vertical_reference.cc
index 69f9d84..3f9219b 100644
--- a/src/vertical_reference.cc
+++ b/src/vertical_reference.cc
@@ -28,11 +28,11 @@ VerticalReference
sub::string_to_vertical_reference (string s)
{
if (s == "top") {
- return TOP;
+ return TOP_OF_SCREEN;
} else if (s == "center") {
- return CENTRE;
+ return CENTRE_OF_SCREEN;
} else if (s == "bottom") {
- return BOTTOM;
+ return BOTTOM_OF_SCREEN;
}
throw XMLError ("unknown subtitle valign type");