From: Vadim Zeitlin Date: Fri, 7 Oct 2005 21:49:20 +0000 (+0000) Subject: fixed check for bitmapType match (thanks to HP compiler for the warning) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b2322641a8c15b849c7221438ad9f1a7366afa6 fixed check for bitmapType match (thanks to HP compiler for the warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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(); }