]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
Applied patch2 of [ 703990 ] attrib support in wxGTK2 textctrl
[wxWidgets.git] / src / unix / mimetype.cpp
index 1ef3b17521598dbaeb024876d6bb7e4a0339c12b..7a8cbfc2f1305de58f3adb484ef8d5f67f06398f 100644 (file)
@@ -40,7 +40,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "mimetype.h"
 #endif
 
@@ -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);
     }