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();
// Set layout's text
const wxUTF8Buf dataUTF8 = string.utf8_str();
- gint oldSize;
+ gint oldSize=0;
if ( theFont )
{
// scale the font and apply it