diff --git a/src/common/bmpbase.cpp b/src/common/bmpbase.cpp index 2039d5bb34..7868b0b775 100644 --- a/src/common/bmpbase.cpp +++ b/src/common/bmpbase.cpp @@ -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(); }