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
This commit is contained in:
twanvl
2010-12-07 21:05:49 +00:00
parent 6f922eac7d
commit e6884e0db3
+3
View File
@@ -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;