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)