]> git.lyx.org Git - lyx.git/blobdiff - src/ToolbarBackend.cpp
Fix bug 4463. The crash was due to a call to X from inside a child process.
[lyx.git] / src / ToolbarBackend.cpp
index b5c7d40574c4b83c4658593181cfd2962d9617d2..b038623fcb14260b114cc71036b5863fb8f92b4a 100644 (file)
 #include <boost/bind.hpp>
 #include <algorithm>
 
-namespace lyx {
-
-using support::compare_ascii_no_case;
-using support::getVectorFromString;
-
-using std::make_pair;
-using std::string;
-using std::vector;
-using std::find_if;
+using namespace std;
+using namespace lyx::support;
 
+namespace lyx {
 
 namespace {
 
@@ -301,6 +295,8 @@ void ToolbarBackend::readToolbarSettings(Lexer & lex)
                                flag = ToolbarInfo::MATH;
                        else if (!compare_ascii_no_case(*cit, "table"))
                                flag = ToolbarInfo::TABLE;
+                       else if (!compare_ascii_no_case(*cit, "mathmacrotemplate"))
+                               flag = ToolbarInfo::MATHMACROTEMPLATE;
                        else if (!compare_ascii_no_case(*cit, "review"))
                                flag = ToolbarInfo::REVIEW;
                        else if (!compare_ascii_no_case(*cit, "top"))