]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bmpbase.cpp
Might aswell show the compile- and runtime versions of GTK+ in the ctrl+alt+mclick...
[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();
     }