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:
Robert Roebling 2006-01-22 13:22:56 +00:00
parent e918f0582c
commit 7bc5ddc6e4

View File

@ -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;