X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b93328d84228c097e125b0082b486da2aa0d1c22..e731cb64e66a11ab34b2c7a00a583c77055c7433:/src/msw/tbar95.cpp diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 1b69f1db05..7bc8e9589d 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -656,7 +656,7 @@ bool wxToolBar::Realize() if ( m_disabledImgList ) { wxBitmap bmpDisabled = tool->GetDisabledBitmap(); -#if wxUSE_IMAGE +#if wxUSE_IMAGE && wxUSE_WXDIB if ( !bmpDisabled.Ok() ) { // no disabled bitmap specified but we still need to @@ -1049,7 +1049,6 @@ bool wxToolBar::Realize() } InvalidateBestSize(); - SetBestFittingSize(); UpdateSize(); return true;