diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/position_image.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/position_image.cc b/src/lib/position_image.cc index 44c1262b3..47e8f1a98 100644 --- a/src/lib/position_image.cc +++ b/src/lib/position_image.cc @@ -25,11 +25,12 @@ using std::cout; bool PositionImage::same (PositionImage const & other) const { - if (image != other.image || position != other.position) { + if ((!image && other.image) || (image && !other.image) || position != other.position) { return false; } if (!image) { + /* Neither has image and the positions are the same */ return true; } |
