]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bmpbuttn.cpp
using higher abstraction to allow for optimized implementations
[wxWidgets.git] / src / msw / bmpbuttn.cpp
index 8cf3fc95ace7fd6173909b7e7dfe61e6cf0fe67a..4cbbbbb97890eb7d63b2518419a82961b4a9a219 100644 (file)
@@ -80,7 +80,8 @@ bool wxBitmapButton::Create(wxWindow *parent,
                                      validator, name) )
         return false;
 
-    SetBitmapLabel(bitmap);
+    if ( bitmap.IsOk() )
+        SetBitmapLabel(bitmap);
 
     if ( !size.IsFullySpecified() )
     {