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); }