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:
parent
e918f0582c
commit
7bc5ddc6e4
@ -2119,8 +2119,9 @@ wxMimeTypesManagerImpl::GetFileTypeFromMimeType(const wxString& mimeType)
|
||||
}
|
||||
|
||||
if ( index != wxNOT_FOUND )
|
||||
{
|
||||
fileType = new wxFileType;
|
||||
{ // don't throw away fileType that was already found
|
||||
if ( !fileType)
|
||||
fileType = new wxFileType;
|
||||
fileType->m_impl->Init(this, index);
|
||||
}
|
||||
return fileType;
|
||||
|
Loading…
Reference in New Issue
Block a user