projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error when opening the right-click content menu.
[dcpomatic.git]
/
src
/
wx
/
content_menu.cc
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);
}