]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bmpbase.cpp
Allow wx parents a chance to handle events fired by non-wx children. (i.e. wxActiveX...
[wxWidgets.git] / src / common / bmpbase.cpp
index 2039d5bb3428c824721e3eb4cfb53b5430f2eb7b..7868b0b775229c87953fc94effdfb17601a7b2d0 100644 (file)
@@ -77,7 +77,7 @@ wxBitmapHandler *wxBitmapBase::FindHandler(const wxString& extension, wxBitmapTy
     {
         wxBitmapHandler *handler = (wxBitmapHandler *)node->GetData();
         if ( handler->GetExtension() == extension &&
-                    (bitmapType == -1 || handler->GetType() == bitmapType) )
+                    (bitmapType == wxBITMAP_TYPE_ANY || handler->GetType() == bitmapType) )
             return handler;
         node = node->GetNext();
     }