summaryrefslogtreecommitdiff
path: root/src/vertical_position.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/vertical_position.cc')
-rw-r--r--src/vertical_position.cc4
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;