From 4b2322641a8c15b849c7221438ad9f1a7366afa6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Oct 2005 21:49:20 +0000 Subject: [PATCH] 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 --- src/common/bmpbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }