Fix regression in sizes of buttons with bitmaps in wxMSW
After changes in 53eff92ea7 (Call AdjustForBitmapMargins() only once in
wxAnyButton, 2021-04-24) only the margin was accounted for, not the
image size.
Closes https://github.com/wxWidgets/wxWidgets/pull/2421
This commit is contained in:
parent
cd8fea8056
commit
75d508b6e6
1 changed files with 1 additions and 1 deletions
|
|
@ -621,7 +621,7 @@ wxSize wxAnyButton::DoGetBestSize() const
|
|||
}
|
||||
|
||||
if ( m_imageData )
|
||||
AdjustForBitmapMargins(size);
|
||||
AdjustForBitmapSize(size);
|
||||
|
||||
return wxMSWButton::IncreaseToStdSizeAndCache(self, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue