diff --git a/toonz/sources/include/tgeometry.h b/toonz/sources/include/tgeometry.h
index 8abcd2d..fb5c7a0 100644
--- a/toonz/sources/include/tgeometry.h
+++ b/toonz/sources/include/tgeometry.h
@@ -143,7 +143,7 @@ inline bool operator==(const TPointT<T> &p0, const TPointT<T> &p1) {
 }
 template<class T>
 inline bool operator!=(const TPointT<T> &p0, const TPointT<T> &p1) {
-  return p0.x != p1.x && p0.y != p1.y;
+  return p0.x != p1.x || p0.y != p1.y;
 }
 
 //-----------------------------------------------------------------------------