]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed out by one error
authorJulian Smart <julian@anthemion.co.uk>
Tue, 15 Jul 2003 10:10:37 +0000 (10:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 15 Jul 2003 10:10:37 +0000 (10:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 1ef3b17521598dbaeb024876d6bb7e4a0339c12b..a8c0329c914cef4e15a442a4bdb1d65c7c6e4e85 100644 (file)
@@ -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);
     }