X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c41dbc208516572b9afc53fe7c3f7246601dae53..1a94b3d8619d8dc146c4073c0a78d15e44b4e8db:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 22d2b25d2b..1c6eb62aae 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -1821,7 +1821,8 @@ int wxMimeTypesManagerImpl::AddToMimeData(const wxString& strType, m_aEntries.Add(entry ? entry : new wxMimeTypeCommands); // change nIndex so we can use it below to add the extensions - nIndex = m_aExtensions.Add(wxEmptyString); + m_aExtensions.Add(wxEmptyString); + nIndex = m_aExtensions.size(); m_aDescriptions.Add(strDesc); }