projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52bb9a6
)
Fix error when opening the right-click content menu.
author
Carl Hetherington
<cth@carlh.net>
Thu, 1 Feb 2024 11:28:39 +0000
(12:28 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 1 Feb 2024 11:28:39 +0000
(12:28 +0100)
src/wx/content_menu.cc
patch
|
blob
|
history
diff --git
a/src/wx/content_menu.cc
b/src/wx/content_menu.cc
index 78b6469a043249605873dff4889175e8183ca2d6..700683bd2b8e177f2d1417816e865c11acd15b42 100644
(file)
--- a/
src/wx/content_menu.cc
+++ b/
src/wx/content_menu.cc
@@
-137,7
+137,7
@@
ContentMenu::popup (weak_ptr<Film> 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);
}