fixed wrong use of = instead of == (patch 1159289)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -151,6 +151,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
virtual bool LoadIcon(wxIcon *icon,
|
virtual bool LoadIcon(wxIcon *icon,
|
||||||
const wxString& name, long flags,
|
const wxString& name, long flags,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
@@ -168,6 +169,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
virtual bool LoadIcon(wxIcon *icon,
|
virtual bool LoadIcon(wxIcon *icon,
|
||||||
const wxString& name, long flags,
|
const wxString& name, long flags,
|
||||||
int desiredWidth = -1, int desiredHeight = -1);
|
int desiredWidth = -1, int desiredHeight = -1);
|
||||||
@@ -265,7 +267,7 @@ wxGDIImageHandler *wxGDIImage::FindHandler(const wxString& extension,
|
|||||||
while ( node )
|
while ( node )
|
||||||
{
|
{
|
||||||
wxGDIImageHandler *handler = node->GetData();
|
wxGDIImageHandler *handler = node->GetData();
|
||||||
if ( (handler->GetExtension() = extension) &&
|
if ( (handler->GetExtension() == extension) &&
|
||||||
(type == -1 || handler->GetType() == type) )
|
(type == -1 || handler->GetType() == type) )
|
||||||
{
|
{
|
||||||
return handler;
|
return handler;
|
||||||
|
Reference in New Issue
Block a user