]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.C
fix reading the author field.
[lyx.git] / src / ToolbarBackend.C
index cebf1262bd759ea66a4f49474e7a2e95ab0c54df..1a616774cfb41ba08d82e4391473b784ae411e79 100644 (file)
@@ -75,6 +75,13 @@ void ToolbarBackend::read(LyXLex & lex)
 
        Toolbar tb;
        tb.name = lex.getString();
+       lex.next(true);
+       if (!lex.isOK()) {
+               lyxerr << "ToolbarBackend::read: Malformed toolbar "
+                       "description " <<  lex.getString() << endl;
+               return;
+       }
+       tb.gui_name = lex.getString();
 
        bool quit = false;
 
@@ -205,6 +212,8 @@ void ToolbarBackend::add(Toolbar & tb,
 
 string const ToolbarBackend::getIcon(FuncRequest const & f)
 {
+       using lyx::frontend::find_xpm;
+
        string fullname;
 
        if (f.action == LFUN_INSERT_MATH) {