]> git.saurik.com Git - wxWidgets.git/commitdiff
pass double as sqrt() argument as at least Sun compiler has troubles with sqrt(2)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jun 2007 15:21:03 +0000 (15:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jun 2007 15:21:03 +0000 (15:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gnome/gprint.cpp

index 80827bd60dfd15e72796bc335501e0e5221b114d..53a39a794a92c6e3a583e5833407d3565253af11 100644 (file)
@@ -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,