diff --git a/docs/changes.txt b/docs/changes.txt index 10a646a221..7889803262 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -133,6 +133,9 @@ wxHTML: - improved tables and lists layout algorithms (Tim Kosse) -
handling fix (Xavier Nodet) +Unix: +- fixed priorities of mailcap entries (David Hart) + 2.5.1 ----- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index cae5717219..e677ef3d4d 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -2707,9 +2707,10 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName, // have we seen this one before? int nIndex = m_aTypes.Index(data.type); - // and if we have, was it in this file? + // and if we have, was it in this file? if not, we should + // overwrite the previously seen one overwrite = nIndex == wxNOT_FOUND || - aIndicesSeenHere.Index(nIndex) != wxNOT_FOUND; + aIndicesSeenHere.Index(nIndex) == wxNOT_FOUND; } wxLogTrace(TRACE_MIME, _T("mailcap %s: %s [%s]"),