diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-03 15:45:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-03 15:45:02 +0000 |
commit | b59f5ad7232eb7e22b30c64769ab43c8327661f5 (patch) | |
tree | 0687ae71095ca83381138145cecdc252f852413e /src | |
parent | 4b357e09ae8cd8fbab42e64174528bdf80b81353 (diff) |
no need to generate useless separators in the beginning of each submenu
git-svn-id: http://svn.miranda-ng.org/main/trunk@15815 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_options.cpp b/src/mir_app/src/menu_options.cpp index 2a4908ce3c..2003d9b685 100644 --- a/src/mir_app/src/menu_options.cpp +++ b/src/mir_app/src/menu_options.cpp @@ -204,7 +204,7 @@ class CGenMenuOptionsPage : public CDlgBase for (int i = 0; i < arItems.getCount(); i++) { MenuItemOptData *PD = arItems[i]; - if (PD->pos - lastpos >= SEPARATORPOSITIONINTERVAL) { + if (i > 0 && PD->pos - lastpos >= SEPARATORPOSITIONINTERVAL) { MenuItemOptData *sep = new MenuItemOptData(); sep->id = -1; sep->name = mir_tstrdup(STR_SEPARATOR); |