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:
@@ -77,7 +77,7 @@ wxBitmapHandler *wxBitmapBase::FindHandler(const wxString& extension, wxBitmapTy
|
|||||||
{
|
{
|
||||||
wxBitmapHandler *handler = (wxBitmapHandler *)node->GetData();
|
wxBitmapHandler *handler = (wxBitmapHandler *)node->GetData();
|
||||||
if ( handler->GetExtension() == extension &&
|
if ( handler->GetExtension() == extension &&
|
||||||
(bitmapType == -1 || handler->GetType() == bitmapType) )
|
(bitmapType == wxBITMAP_TYPE_ANY || handler->GetType() == bitmapType) )
|
||||||
return handler;
|
return handler;
|
||||||
node = node->GetNext();
|
node = node->GetNext();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user