From 41f50eed8ca9b034fc4f6d5cbd1b3b475e9279e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 29 Oct 2016 11:07:06 +0100 Subject: [PATCH] Fix crash on Repeat... option. --- src/wx/content_menu.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/content_menu.cc b/src/wx/content_menu.cc index de3aceac0..fb255b360 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -88,7 +88,7 @@ ContentMenu::ContentMenu (wxWindow* p) _parent->Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&ContentMenu::ov, this), ID_ov); _parent->Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&ContentMenu::remove, this), ID_remove); - _parent->Bind (wxEVT_MENU, boost::bind (&ContentMenu::cpl_selected, this, _1), 0, ID_repeat); + _parent->Bind (wxEVT_MENU, boost::bind (&ContentMenu::cpl_selected, this, _1), 0, ID_repeat - 1); } ContentMenu::~ContentMenu () -- 2.30.2