]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/bmpbuttn.cpp
Don't enter an infinite loop if a spacer with min size of -1 is used.
[wxWidgets.git] / src / motif / bmpbuttn.cpp
index 0ba91fd8fd6c7b7489b44571b92b12bb6f607070..4449639d9ce17a1d580e11ade5556112a49914d0 100644 (file)
@@ -89,7 +89,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id,
     if( size.y != -1 ) best.y = size.y;
 
     PostCreation();
-    DoSetBitmap();
+    OnSetBitmap();
 
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
                   pos.x, pos.y, best.x, best.y);
@@ -222,7 +222,7 @@ void wxBitmapButton::ChangeBackgroundColour()
     wxDoChangeBackgroundColour(m_mainWidget, m_backgroundColour, true);
 
     // Must reset the bitmaps since the colours have changed.
-    DoSetBitmap();
+    OnSetBitmap();
 }
 
 wxSize wxBitmapButton::DoGetBestSize() const