From: Robin Dunn Date: Tue, 3 Oct 2006 21:53:35 +0000 (+0000) Subject: Avoid ambigous overload errors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5ce3abfb25adf46ce963df1bfd9260f17b828be2?ds=inline Avoid ambigous overload errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index f7e7d1abb6..65a5dd067f 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -105,8 +105,8 @@ void wxGraphicsPath::AddQuadCurveToPoint( wxDouble cx, wxDouble cy, wxDouble x, wxPoint2DDouble start = GetCurrentPoint() ; wxPoint2DDouble end(x,y); wxPoint2DDouble c(cx,cy); - c1 = (1/3.0) * start + (2/3.0) * c; - c2 = (2/3.0) * c + (1/3.0) * end ; + c1 = wxDouble(1/3.0) * start + wxDouble(2/3.0) * c; + c2 = wxDouble(2/3.0) * c + wxDouble(1/3.0) * end ; AddCurveToPoint(c1.m_x,c1.m_y,c2.m_x,c2.m_y,x,y); }