]> git.lyx.org Git - features.git/blobdiff - src/ToolbarDefaults.C
Kayvan --export fix ; Angus toolbar fixes
[features.git] / src / ToolbarDefaults.C
index 9e8cc03a780656abc5f622fa2d3e18f765a0a28e..087ec6d65206d2b7340dc159da3786754f72427e 100644 (file)
@@ -111,14 +111,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 +148,6 @@ void ToolbarDefaults::read(LyXLex & lex)
                }
        }
        lex.popTable();
-       lex.next();
 }