diff --git a/src/gtk/infobar.cpp b/src/gtk/infobar.cpp index c3d4d4018d..349c4e4ea5 100644 --- a/src/gtk/infobar.cpp +++ b/src/gtk/infobar.cpp @@ -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();