zephyrer / advcombobox

Automatically exported from code.google.com/p/advcombobox
0 stars 0 forks source link

Second insert lost #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
ere is one problem in the function of the tnsertString(). I want to push the 
datas one by one. But the second data is lost. I debug it again and find the 
problem. When I push the data with the nIndex=1, and the list size=1, the 
program jump the judge of "if( nIndex == -1 || (nIndex > m_list.size()) )". So, 
the second data lost.  
one example:
m_ctlAdvCombo.InsertString(0,"aaa");
m_ctlAdvCombo.InsertString(1,"bbb");//lost
m_ctlAdvCombo.InsertString(2,"ccc"); 
I modify ">" to be ">=". It work.  

Calvin

http://www.codeproject.com/Messages/3344716/the-second-data-is-lost.aspx

Original issue reported on code.google.com by mathias....@gmail.com on 29 Sep 2010 at 1:44