]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/listbox.cpp
added dependency handling to Makefiles
[wxWidgets.git] / src / mac / listbox.cpp
index 05cc0e249a6927baa3f82ebd2461c8aa253ea602..4e737dc2f64ddce2994df3a26e5a367528421688 100644 (file)
@@ -20,7 +20,7 @@
 #include "wx/log.h"
 
 #include "wx/utils.h"
 #include "wx/log.h"
 
 #include "wx/utils.h"
-#ifdef __UNIX__
+#ifdef __DARWIN__
   #include "ldef/extldef.h"
 #else
   #include "extldef.h"
   #include "ldef/extldef.h"
 #else
   #include "extldef.h"
@@ -166,7 +166,7 @@ void wxListBox::Delete(int N)
     }
 #endif // wxUSE_OWNER_DRAWN/!wxUSE_OWNER_DRAWN
        m_stringArray.Remove( N ) ;
     }
 #endif // wxUSE_OWNER_DRAWN/!wxUSE_OWNER_DRAWN
        m_stringArray.Remove( N ) ;
-       m_dataArray.Remove( N ) ;
+       m_dataArray.RemoveAt( N ) ;
        m_noItems --;
        
        MacDelete( N ) ;
        m_noItems --;
        
        MacDelete( N ) ;