From: Carl Hetherington Date: Thu, 1 Feb 2024 11:28:39 +0000 (+0100) Subject: Fix error when opening the right-click content menu. X-Git-Tag: v2.16.74~13 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=a3a0e7a567b73dac9ba29a1ab28e58757cc21411 Fix error when opening the right-click content menu. --- 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); }