From d2ec53ea4aaf0e8740e373f063042d5c8de2d5df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 7 Dec 2002 00:05:03 +0000 Subject: [PATCH] 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 --- src/msw/ownerdrw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 03519026bc..bd2c1cd6a2 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -147,7 +147,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight) *pwidth += adjustedWidth - ms_nDefaultMarginWidth; // Do we need to widen margin to fit BMP? - if ((size_t)GetMarginWidth() < adjustedWidth) + if ((size_t)GetMarginWidth() != adjustedWidth) SetMarginWidth(adjustedWidth); } -- 2.45.2