diff --git a/docs/changes.txt b/docs/changes.txt index 656d436e48..afc990aefc 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -231,7 +231,8 @@ wxMac: wxMSW: - fixed enhanced metafiles loading from files (Andreas Goebel) -- Group of wxRadioButtons no longer have to be consecutive +- wxRadioButtons no longer have to be consecutive in a group +- fixed wxBU_EXACTFIT handling in wxBitmapButton 2.5.3 diff --git a/src/msw/bmpbuttn.cpp b/src/msw/bmpbuttn.cpp index d40d422eda..af0014cf67 100644 --- a/src/msw/bmpbuttn.cpp +++ b/src/msw/bmpbuttn.cpp @@ -505,10 +505,10 @@ wxSize wxBitmapButton::DoGetBestSize() const if ( !HasFlag(wxBU_EXACTFIT) ) { wxSize sz = GetDefaultSize(); - if (best.x > sz.x) - sz.x = best.x; - if (best.y > sz.y) - sz.y = best.y; + if ( best.x < sz.x ) + best.x = sz.x; + if ( best.y < sz.y ) + best.y = sz.y; } return best;