]> git.saurik.com Git - wxWidgets.git/commitdiff
fix (?) for small menu item bitmaps (bug 635438)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Dec 2002 00:05:03 +0000 (00:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Dec 2002 00:05:03 +0000 (00:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ownerdrw.cpp

index 03519026bc4a4510c426a7461488ccee26be922e..bd2c1cd6a296b61485dcc19d2e16c2976fb80c73 100644 (file)
@@ -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);
   }