there is no sqrt(int) in standard C++ (although glibc seems to provide it); select sqrt(double) explicitly to fix HP-UX compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6286f3c8fc
commit
d31d30d791
@ -1192,7 +1192,8 @@ void wxGtkPrinterDCImpl::DoGradientFillConcentric(const wxRect& rect, const wxCo
|
||||
wxCoord w = rect.width;
|
||||
wxCoord h = rect.height;
|
||||
|
||||
double radius = sqrt((w/2)*(w/2)+(h/2)*(h/2));
|
||||
const double r2 = (w/2)*(w/2)+(h/2)*(h/2);
|
||||
double radius = sqrt(r2);
|
||||
|
||||
unsigned char redI = initialColour.Red();
|
||||
unsigned char blueI = initialColour.Blue();
|
||||
|
Loading…
Reference in New Issue
Block a user