]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarDefaults.C
fix "make dist" target
[lyx.git] / src / ToolbarDefaults.C
index 9e8cc03a780656abc5f622fa2d3e18f765a0a28e..28813df5e8b8bee3c160d6ed0263c42b8b07a83d 100644 (file)
@@ -70,9 +70,6 @@ void ToolbarDefaults::init()
 
        add(LFUN_FIGURE);
        add(LFUN_DIALOG_TABULAR_INSERT);
-#if 0
-       //add(LFUN_MELT);
-#endif
 }
 
 
@@ -111,14 +108,13 @@ void ToolbarDefaults::read(LyXLex & lex)
 
        if (lyxerr.debugging(Debug::PARSER))
                lex.printTable(lyxerr);
-       
-       while (lex.IsOK() && !quit) {
 
+       while (lex.IsOK() && !quit) {
                switch (lex.lex()) {
                case TO_ADD:
                        if (lex.next()) {
                                func = lex.GetString();
-                               lyxerr[Debug::GUI]
+                               lyxerr[Debug::PARSER]
                                        << "Toolbar::read TO_ADD func: `"
                                        << func << "'" << endl;
                                add(func);
@@ -149,7 +145,6 @@ void ToolbarDefaults::read(LyXLex & lex)
                }
        }
        lex.popTable();
-       lex.next();
 }