summaryrefslogtreecommitdiffstats
path: root/ui/gfx/point.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/point.h')
-rw-r--r--ui/gfx/point.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gfx/point.h b/ui/gfx/point.h
index f81dd90..4404582 100644
--- a/ui/gfx/point.h
+++ b/ui/gfx/point.h
@@ -74,7 +74,7 @@ inline Point operator-(const Point& lhs, const Vector2d& rhs) {
}
inline Vector2d operator-(const Point& lhs, const Point& rhs) {
- return lhs.OffsetFrom(rhs);
+ return Vector2d(lhs.x() - rhs.x(), lhs.y() - rhs.y());
}
inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) {