Fix inserting multiple items to wxRearrangeList

In wxRearrangeList implementations (like wxMSW) where DoInsertItemsInLoop()
and DoInsertOneItem() are not used to insert multiple items, DoInsertItems()
has to be overriden to do this insertion.

See #17836.
This commit is contained in:
Artur Wieczorek
2017-04-28 23:52:24 +02:00
parent 2cf3a3d1c5
commit d5c46e87a6
3 changed files with 19 additions and 2 deletions

View File

@@ -100,6 +100,8 @@ public:
virtual void Check(unsigned int item, bool check = true) wxOVERRIDE;
int DoInsertOneItem(const wxString& item, unsigned int pos) wxOVERRIDE;
int DoInsertItems(const wxArrayStringsAdapter& items, unsigned int pos,
void **clientData, wxClientDataType type) wxOVERRIDE;
void DoDeleteOneItem(unsigned int n) wxOVERRIDE;
void DoClear() wxOVERRIDE;