No changes, just fix a typo in a variable name.
s/widtht/width/ See #12846. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -887,7 +887,7 @@ bool wxMenuItem::OnMeasureItem(size_t *width, size_t *height)
|
|||||||
// get size of bitmap always return valid value (0 for invalid bitmap),
|
// get size of bitmap always return valid value (0 for invalid bitmap),
|
||||||
// so we don't needed check if bitmap is valid ;)
|
// so we don't needed check if bitmap is valid ;)
|
||||||
size_t heightBmp = wxMax(m_bmpChecked.GetHeight(), m_bmpUnchecked.GetHeight());
|
size_t heightBmp = wxMax(m_bmpChecked.GetHeight(), m_bmpUnchecked.GetHeight());
|
||||||
size_t widthtBmp = wxMax(m_bmpChecked.GetWidth(), m_bmpUnchecked.GetWidth());
|
size_t widthBmp = wxMax(m_bmpChecked.GetWidth(), m_bmpUnchecked.GetWidth());
|
||||||
|
|
||||||
if ( IsOwnerDrawn() )
|
if ( IsOwnerDrawn() )
|
||||||
{
|
{
|
||||||
@@ -896,7 +896,7 @@ bool wxMenuItem::OnMeasureItem(size_t *width, size_t *height)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// we must allocate enough space for the bitmap
|
// we must allocate enough space for the bitmap
|
||||||
*width += widthtBmp;
|
*width += widthBmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is BMP height larger than text height?
|
// Is BMP height larger than text height?
|
||||||
|
Reference in New Issue
Block a user