Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

#assistants: fix TPointT comparison

Ivan Mahoninb25709ed4d50
diff --git a/toonz/sources/include/tgeometry.h b/toonz/sources/include/tgeometry.h
index 8abcd2d63..fb5c7a09e 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;
}
//-----------------------------------------------------------------------------