Fix crash from previous commit; clear viewer image when its size changes (#12).
[dcpomatic.git] / src / lib / util.cc
index 66eaea39e21258328693570609926c475117cffb..a68496e94260bf90b5ab6bda607f709470d393a8 100644 (file)
@@ -369,6 +369,11 @@ bool operator== (Size const & a, Size const & b)
        return (a.width == b.width && a.height == b.height);
 }
 
+bool operator!= (Size const & a, Size const & b)
+{
+       return !(a == b);
+}
+
 bool operator== (Crop const & a, Crop const & b)
 {
        return (a.left == b.left && a.right == b.right && a.top == b.top && a.bottom == b.bottom);