diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-06 13:29:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-06 13:29:36 +0100 |
| commit | 4ada3e7583dfdc658dbebca3c3603be1e3477c12 (patch) | |
| tree | 0516fdd142b79e7083ed3d455fe45fffce26a9a8 /src/vertical_position.cc | |
| parent | 86440b2afe0a2b83a7e810f37b1f65dbddee90e8 (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_position.cc')
| -rw-r--r-- | src/vertical_position.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
