]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/framelayout/src/newbmpbtn.cpp
don't crash when invalid colour is set as fg/bg colour
[wxWidgets.git] / utils / framelayout / src / newbmpbtn.cpp
index 3f2efd9216628a5f0fc6737a570185af2181ac11..997820a60d879247f22fe00c26883c9bf4576e29 100644 (file)
@@ -537,7 +537,7 @@ void wxNewBitmapButton::RenderLabelImage( wxBitmap*& destBmp, wxBitmap* srcBmp,
 
        if ( !isEnabled ){
        
-#ifdef __WXMSW // This is currently MSW specific
+#ifdef __WXMSW__ // This is currently MSW specific
                greay_out_image_on_dc( destDc, destDim.x, destDim.y );
 #else
                wxBrush checkerBrush( wxBitmap( (const char*)_gDisableImage,8,8) );