]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
Remove check for other wxPaintDCs. It should be done in wxWindow instead.
[wxWidgets.git] / src / unix / mimetype.cpp
index 22d2b25d2b05cff865b8fd863a4f144bad07cafe..1c6eb62aae4e1d6bbe3bb79abd40229be90039a2 100644 (file)
@@ -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);
     }