]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a problem in ConvertWXArrayToC() that would assign a string to an incorrect...
authorGeorge Tasker <gtasker@allenbrook.com>
Fri, 5 Jan 2001 19:10:04 +0000 (19:10 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Fri, 5 Jan 2001 19:10:04 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index 99d5079b4f1411cbc5b7ca9cd2bbb08d70f4f49a..c56105fb18b1ef0e1f4c410b2a97339f6dd3c17b 100644 (file)
@@ -81,9 +81,10 @@ int ConvertWXArrayToC(const wxArrayString& aChoices, wxString **choices)
 {
     int n = aChoices.GetCount();
     *choices = new wxString[n];
+
     for ( int i = 0; i < n; i++ )
     {
-        *choices[i] = aChoices[i];
+        (*choices)[i] = aChoices[i];   
     }
 
     return n;