From 6164301821e1dda9bb2209bbcb75403ad470e11c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Jun 2007 15:21:03 +0000 Subject: [PATCH] pass double as sqrt() argument as at least Sun compiler has troubles with sqrt(2) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/gnome/gprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/gnome/gprint.cpp b/src/gtk/gnome/gprint.cpp index 80827bd60d..53a39a794a 100644 --- a/src/gtk/gnome/gprint.cpp +++ b/src/gtk/gnome/gprint.cpp @@ -1302,7 +1302,7 @@ void wxGnomePrintDC::DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, void wxGnomePrintDC::makeEllipticalPath(wxCoord x, wxCoord y, wxCoord width, wxCoord height) { - double r = 4 * (sqrt (2) - 1) / 3; + double r = 4 * (sqrt(2.) - 1) / 3; double halfW = 0.5 * width, halfH = 0.5 * height, halfWR = r * halfW, -- 2.45.2