- // We can't use rounded bezel styles for multiline buttons as they are
- // only meant to be used at certain sizes, so the style used depends on
- // whether the label is single or multi line.
- const bool isSingleLine = label.find_first_of("\n\r") == wxString::npos;
+ // We can't use rounded bezel styles neither for multiline buttons nor
+ // for buttons containing (big) icons as they are only meant to be used
+ // at certain sizes, so the style used depends on whether the label is
+ // single or multi line.
+ const bool
+ isSimpleText = (label.find_first_of("\n\r") == wxString::npos)
+ && (!bitmap.IsOk() || bitmap.GetHeight() < 20);