From: Vadim Zeitlin Date: Sat, 27 Nov 2010 11:34:40 +0000 (+0000) Subject: Fix the return value of wxSimpleHtmlListBox::Insert(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7612febb93cca7fd8f89137906b7ed9eae381f6c Fix the return value of wxSimpleHtmlListBox::Insert(). The returned index was off by 1. Closes #12717. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/htmllbox.cpp b/src/generic/htmllbox.cpp index 0e89d1e8f1..2bc89731c1 100644 --- a/src/generic/htmllbox.cpp +++ b/src/generic/htmllbox.cpp @@ -686,7 +686,7 @@ int wxSimpleHtmlListBox::DoInsertItems(const wxArrayStringsAdapter& items, UpdateCount(); - return pos; + return pos - 1; } void wxSimpleHtmlListBox::SetString(unsigned int n, const wxString& s)