Use logical size to center the bitmap in bitmap button.
This commit is contained in:
parent
d451d2f548
commit
41b30e6ac6
|
@ -344,7 +344,7 @@ void BITMAP_BUTTON::OnPaint( wxPaintEvent& aEvent )
|
||||||
else if( bmp.IsOk() )
|
else if( bmp.IsOk() )
|
||||||
{
|
{
|
||||||
bmpImg = bmp.GetBitmap( ToPhys( m_unadjustedMinSize ) );
|
bmpImg = bmp.GetBitmap( ToPhys( m_unadjustedMinSize ) );
|
||||||
bmSize = bmpImg.GetSize();
|
bmSize = bmpImg.GetLogicalSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_centerBitmap )
|
if( m_centerBitmap )
|
||||||
|
|
Loading…
Reference in New Issue