Use logical size to center the bitmap in bitmap button.

This commit is contained in:
Alex Shvartzkop 2024-05-27 11:25:55 +03:00
parent d451d2f548
commit 41b30e6ac6
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ void BITMAP_BUTTON::OnPaint( wxPaintEvent& aEvent )
else if( bmp.IsOk() )
{
bmpImg = bmp.GetBitmap( ToPhys( m_unadjustedMinSize ) );
bmSize = bmpImg.GetSize();
bmSize = bmpImg.GetLogicalSize();
}
if( m_centerBitmap )