From a3a0e7a567b73dac9ba29a1ab28e58757cc21411 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 Feb 2024 12:28:39 +0100 Subject: [PATCH] Fix error when opening the right-click content menu. --- 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 78b6469a0..700683bd2 100644 --- a/src/wx/content_menu.cc +++ b/src/wx/content_menu.cc @@ -137,7 +137,7 @@ ContentMenu::popup (weak_ptr film, ContentList c, TimelineContentViewList _views = v; int const N = _cpl_menu->GetMenuItemCount(); - for (int i = 1; i <= N; ++i) { + for (int i = DCPOMATIC_CPL_MENU; i < DCPOMATIC_CPL_MENU + N; ++i) { _cpl_menu->Delete (i); } -- 2.30.2