From 4ada3e7583dfdc658dbebca3c3603be1e3477c12 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Oct 2014 13:29:36 +0100 Subject: 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. --- src/vertical_position.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vertical_position.cc') diff --git a/src/vertical_position.cc b/src/vertical_position.cc index 3984568..1fdb1e1 100644 --- a/src/vertical_position.cc +++ b/src/vertical_position.cc @@ -26,8 +26,8 @@ VerticalPosition::operator== (VerticalPosition const & other) const { if (proportional && reference && other.proportional && other.reference) { return proportional.get() == other.proportional.get() && reference.get() == other.reference.get(); - } else if (line && other.line) { - return line.get() == other.line.get(); + } else if (reference && line && other.reference && other.line) { + return line.get() == other.line.get() && reference.get() == other.reference.get(); } return false; -- cgit v1.2.3