From 46ec70fb5ab5f089c80fc8e2c90b4bc573d333ce Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 26 Jul 2003 12:26:09 +0000 Subject: [PATCH] Blind compilation fix for old Motif wxComboBox. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/combobox.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.50.0