From: Mattia Barbon <mbarbon@cpan.org>
Date: Sat, 26 Jul 2003 12:26:09 +0000 (+0000)
Subject:   Blind compilation fix for old Motif wxComboBox.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/46ec70fb5ab5f089c80fc8e2c90b4bc573d333ce

  Blind compilation fix for old Motif wxComboBox.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/motif/combobox.cpp b/src/motif/combobox.cpp
index 8600650432..9cf68483e5 100644
--- a/src/motif/combobox.cpp
+++ b/src/motif/combobox.cpp
@@ -155,10 +155,8 @@ int wxComboBox::DoInsert(const wxString& item, int pos)
 
     wxXmString str( item.c_str() );
     XmComboBoxAddItem((Widget) m_mainWidget, str(), pos+1);
-#ifndef __VMS
-   //FIX me for VMS : no intance for insert function to overload
-   m_stringList.Insert(pos, item);
-#endif
+    wxChar* copy = wxStrcpy(new wxChar[item.length() + 1], item.c_str());
+    m_stringList.Insert(pos, copy);
     m_noStrings ++;
 
     return pos;