Fix GTK wxPrinterDC gradient fill radius

All the other implementations use the rect width/height, not the diagonal
This commit is contained in:
Paul Cornett
2021-02-02 10:16:42 -08:00
parent 55b7198e92
commit a571ec6fbb

View File

@@ -1285,8 +1285,7 @@ void wxGtkPrinterDCImpl::DoGradientFillConcentric(const wxRect& rect, const wxCo
wxCoord w = rect.width;
wxCoord h = rect.height;
const double r2 = (w/2)*(w/2)+(h/2)*(h/2);
double radius = sqrt(r2);
const double radius = wxMin(w, h) / 2.0;
unsigned char redI = initialColour.Red();
unsigned char blueI = initialColour.Blue();