]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.C
cleanup after svn hang-up, #undef CursorShape. Should be compilable ganin now.
[lyx.git] / src / LColor.C
index 08badd8b1079bb2d71d57c9b0bbe998ede5e43c4..b63f716fbd59a400f8745d6e1dcc2db0dfc6b4be 100644 (file)
@@ -177,7 +177,7 @@ string const LColor::getGUIName(LColor::color c) const
 {
        Pimpl::InfoTab::const_iterator it = pimpl_->infotab.find(c);
        if (it != pimpl_->infotab.end())
-               return _(it->second.guiname);
+               return lyx::to_utf8(_(it->second.guiname));
        return "none";
 }
 
@@ -254,7 +254,7 @@ LColor::color LColor::getFromGUIName(string const & guiname) const
        Pimpl::InfoTab::const_iterator it = pimpl_->infotab.begin();
        Pimpl::InfoTab::const_iterator end = pimpl_->infotab.end();
        for (; it != end; ++it) {
-               if (!compare_ascii_no_case(_(it->second.guiname), guiname))
+               if (!compare_ascii_no_case(lyx::to_utf8(_(it->second.guiname)), guiname))
                        return it->first;
        }
        return LColor::inherit;