Only dump one top-level submenu.

This commit is contained in:
Jonathan Moore Liles 2008-05-06 13:10:22 -05:00
parent 11e11d97b2
commit ed2e8e3f69
1 changed files with 6 additions and 1 deletions

View File

@ -81,6 +81,10 @@ Fl_Menu_Settings::dump ( Fl_Menu_ *bar, const Fl_Menu_Item *menu, FILE *fp, int
/* recurse */
m = dump( bar, ++m, fp, depth + 1 );
if ( ! depth )
break;
else
continue;
}
@ -112,6 +116,7 @@ Fl_Menu_Settings::dump ( Fl_Menu_ *bar, const Fl_Menu_Item *menu, FILE *fp, int
fprintf( fp, "%s\n", path + strlen( path ) + 1 );
}
}
}
return m;