summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_add.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2018-12-29 01:19:51 +0100
committerMatthias Melcher <git@matthiasm.com>2018-12-29 01:19:51 +0100
commit29fe0c43df7bad2df0f4445994b9d5d851bc2cdb (patch)
treeddb2017b80092d90d1e4bbce873ecee1550c9c84 /src/Fl_Menu_add.cxx
parente169b1941fb1b3cfb8333ec27ab8f04671850ab9 (diff)
Remove obsolete condition to make static analysis happy.
Diffstat (limited to 'src/Fl_Menu_add.cxx')
-rw-r--r--src/Fl_Menu_add.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Menu_add.cxx b/src/Fl_Menu_add.cxx
index 32da93df3..57534f4e3 100644
--- a/src/Fl_Menu_add.cxx
+++ b/src/Fl_Menu_add.cxx
@@ -176,7 +176,7 @@ int Fl_Menu_Item::insert(
if (m->flags&FL_SUBMENU && !compare(item, m->text)) break;
if (!m->text) { /* create a new menu */
- int n = (index==-1) ? (int) (m-array) : index;
+ int n = (int)(m-array); /* index is not used if label contains a path */
array = array_insert(array, msize, n, item, FL_SUBMENU|flags1);
msize++;
array = array_insert(array, msize, n+1, 0, 0);