X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a49686b4c29e431ed24b14fae4d97140d447a149..1a94b3d8619d8dc146c4073c0a78d15e44b4e8db:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index c54a12b68a..1c6eb62aae 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -77,6 +77,7 @@ #include "wx/dir.h" #include "wx/utils.h" #include "wx/tokenzr.h" +#include "wx/iconloc.h" #include "wx/unix/mimetype.h" @@ -1820,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); }