]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
Putting the SetBestFittingSize() call at the end of wxToolBar::Realize
[wxWidgets.git] / src / msw / tbar95.cpp
index 1b69f1db05b3ac85a5093ca42d09c32dc05080df..7bc8e9589db81b0d1288e7613d906a8fcf462d69 100644 (file)
@@ -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;