From 7bad6c5adab2664eecf40b285c654f73e66ea5cf Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 7 Dec 2010 21:13:08 +0000 Subject: [PATCH] compatibility with wxWdigets 2.9+: Vector2D: prevent ambiguous conversion errors git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1539 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gfx/bezier.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/bezier.hpp b/src/gfx/bezier.hpp index a129cc12..bedae344 100644 --- a/src/gfx/bezier.hpp +++ b/src/gfx/bezier.hpp @@ -41,7 +41,7 @@ class BezierCurve { /// Return the tangent on this curve at time t in [0...1) inline Vector2D tangentAt(double t) const { - return c + ((b * 2) + (a * 3) * t) * t; + return c + ((b * 2.) + (a * 3.) * t) * t; } };