Applied MIME-types patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2119,8 +2119,9 @@ wxMimeTypesManagerImpl::GetFileTypeFromMimeType(const wxString& mimeType)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( index != wxNOT_FOUND )
|
if ( index != wxNOT_FOUND )
|
||||||
{
|
{ // don't throw away fileType that was already found
|
||||||
fileType = new wxFileType;
|
if ( !fileType)
|
||||||
|
fileType = new wxFileType;
|
||||||
fileType->m_impl->Init(this, index);
|
fileType->m_impl->Init(this, index);
|
||||||
}
|
}
|
||||||
return fileType;
|
return fileType;
|
||||||
|
Reference in New Issue
Block a user