fix (?) for small menu item bitmaps (bug 635438)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,7 +147,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
|
|||||||
*pwidth += adjustedWidth - ms_nDefaultMarginWidth;
|
*pwidth += adjustedWidth - ms_nDefaultMarginWidth;
|
||||||
|
|
||||||
// Do we need to widen margin to fit BMP?
|
// Do we need to widen margin to fit BMP?
|
||||||
if ((size_t)GetMarginWidth() < adjustedWidth)
|
if ((size_t)GetMarginWidth() != adjustedWidth)
|
||||||
SetMarginWidth(adjustedWidth);
|
SetMarginWidth(adjustedWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user