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,7 +81,11 @@ Fl_Menu_Settings::dump ( Fl_Menu_ *bar, const Fl_Menu_Item *menu, FILE *fp, int
/* recurse */ /* recurse */
m = dump( bar, ++m, fp, depth + 1 ); m = dump( bar, ++m, fp, depth + 1 );
continue;
if ( ! depth )
break;
else
continue;
} }
if ( m->flags & FL_MENU_RADIO ) if ( m->flags & FL_MENU_RADIO )
@ -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 ); fprintf( fp, "%s\n", path + strlen( path ) + 1 );
} }
} }
} }
return m; return m;