]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed check for bitmapType match (thanks to HP compiler for the warning)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Oct 2005 21:49:20 +0000 (21:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Oct 2005 21:49:20 +0000 (21:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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();
     }