X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fposition_image.cc;h=544f08defd4ad75cc603835e7292290a37702ea0;hb=1858190cff2f960f3d1f0a5cc02c69da86088f5b;hp=44c1262b3a90d11aba8e6ec94438e39cff950102;hpb=cb990adba9c57e5107ef2aa9716cf0a26c1df83d;p=dcpomatic.git diff --git a/src/lib/position_image.cc b/src/lib/position_image.cc index 44c1262b3..544f08def 100644 --- a/src/lib/position_image.cc +++ b/src/lib/position_image.cc @@ -19,17 +19,19 @@ #include "position_image.h" #include "image.h" +#include 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; }