Merge branch 'vector-reverse-iter'

Fix wxVector reverse iterator base().

See https://github.com/wxWidgets/wxWidgets/pull/1948
This commit is contained in:
Vadim Zeitlin
2020-07-12 22:30:42 +02:00
3 changed files with 79 additions and 113 deletions

View File

@@ -323,7 +323,7 @@ void wxInfoBar::RemoveButton(wxWindowID btnid)
if (i->id == btnid)
{
gtk_widget_destroy(i->button);
buttons.erase(i.base());
buttons.erase(i.base() - 1);
// see comment in GTKAddButton()
InvalidateBestSize();