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