git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49127
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxAlignment align,
int indexAccel)
{
wxAlignment align,
int indexAccel)
{
- wxBitmap bmp(bitmap.Ok() ? bitmap : GetCheckBitmap(flags));
-
- DrawCheckOrRadioButton(dc, label, bmp, rect, flags, align, indexAccel);
+ if (bitmap.Ok())
+ DrawCheckOrRadioButton(dc, label, bitmap, rect, flags, align, indexAccel);
+ else
+ DrawCheckOrRadioButton(dc, label, GetCheckBitmap(flags), rect, flags, align, indexAccel);
}
void wxStdRenderer::DrawRadioButton(wxDC& dc,
}
void wxStdRenderer::DrawRadioButton(wxDC& dc,
wxAlignment align,
int indexAccel)
{
wxAlignment align,
int indexAccel)
{
- wxBitmap bmp(bitmap.Ok() ? bitmap : GetRadioBitmap(flags));
-
- DrawCheckOrRadioButton(dc, label, bmp, rect, flags, align, indexAccel);
+ if (bitmap.Ok())
+ DrawCheckOrRadioButton(dc, label, bitmap, rect, flags, align, indexAccel);
+ else
+ DrawCheckOrRadioButton(dc, label, GetRadioBitmap(flags), rect, flags, align, indexAccel);
+
}
void wxStdRenderer::DrawCheckOrRadioButton(wxDC& dc,
}
void wxStdRenderer::DrawCheckOrRadioButton(wxDC& dc,