]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex.C
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / lyxlex.C
index 1665d38f459cba27f9a1df89e44b16d06cbd6550..d8622eb9ce67c3b0e4b0bbea5986b5113348d8c2 100644 (file)
@@ -197,7 +197,7 @@ string const LyXLex::getLongString(string const & endtoken)
 
                string const token = trim(getString(), " \t");
 
-               lyxerr[Debug::PARSER] << "LongString: `"
+               LYXERR(Debug::PARSER) << "LongString: `"
                                      << getString() << '\'' << endl;
 
                // We do a case independent comparison, like search_kw does.
@@ -210,7 +210,7 @@ string const LyXLex::getLongString(string const & endtoken)
                        if (i != string::npos)
                                prefix = tmpstr.substr(0, i);
                        firstline = false;
-                       lyxerr[Debug::PARSER]
+                       LYXERR(Debug::PARSER)
                                << "Prefix = `" << prefix << "\'" << endl;
                }