]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
Fix loop when opening TOC widget in an empty document, basically by Richard Heck.
[lyx.git] / src / LColor.C
index 5923d26ce8b83df3a5ac17933eb653a179b6e771..f99c3e06c59711e73e8312806ecb60f93e8e2ae9 100644 (file)
@@ -240,7 +240,7 @@ bool LColor::setColor(string const & lyxname, string const &x11name)
 {
        string const lcname = ascii_lowercase(lyxname);
        if (pimpl_->lyxcolors.find(lcname) == pimpl_->lyxcolors.end()) {
-               lyxerr[Debug::GUI]
+               LYXERR(Debug::GUI)
                        << "LColor::setColor: Unknown color \""
                       << lyxname << '"' << endl;
                addColor(static_cast<color>(pimpl_->infotab.size()), lcname);