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
This commit is contained in:
parent
f3f4302326
commit
4b2322641a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user