From e6884e0db3a12d416d68897805286f892ca6428e Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:05:49 +0000 Subject: [PATCH] compatibility with wxWdigets 2.9+: Vector2D::operator *(int) to prevent ambiguous conversion errors git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1530 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/vector2d.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/vector2d.hpp b/src/util/vector2d.hpp index 15c29b1f..73c4a734 100644 --- a/src/util/vector2d.hpp +++ b/src/util/vector2d.hpp @@ -61,6 +61,9 @@ class Vector2D { inline Vector2D operator * (double r) const { return Vector2D(x * r, y * r); } + inline Vector2D operator * (int r) const { + return Vector2D(x * r, y * r); + } /// Multiply with a scalar inline void operator *= (double r) { x *= r; y *= r;