X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b6d8c00fcbee0814d2a27f99409731940cf0a51..9a5e7770ad9c9a34d57c35bb24ed2ec4126a81ec:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 1ef3b17521..a8c0329c91 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -1821,7 +1821,7 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType, // change nIndex so we can use it below to add the extensions m_aExtensions.Add(wxEmptyString); - nIndex = m_aExtensions.size(); + nIndex = m_aExtensions.size() - 1; m_aDescriptions.Add(strDesc); }