X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLColor.C;h=c213c79fe8d85b3e79c5e34c667415b889d995fe;hb=29f01faa17495e3d80c08f234c8f049c7d699ac1;hp=d445f313b257639c36119a7046538d99eb14a8de;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/LColor.C b/src/LColor.C index d445f313b2..c213c79fe8 100644 --- a/src/LColor.C +++ b/src/LColor.C @@ -13,8 +13,6 @@ #pragma implementation #endif -#include - #include "debug.h" #include "LColor.h" #include "support/LAssert.h" @@ -62,6 +60,7 @@ LColor::LColor() { foreground, N_("text"), "foreground", "black", "foreground" }, { selection, N_("selection"), "selection", "LightBlue", "selection" }, { latex, N_("latex text"), "latex", "DarkRed", "latex" }, + { preview, N_("previewed snippet"), "preview", "black", "preview" }, { note, N_("note"), "note", "yellow", "note" }, { notebg, N_("note background"), "notebg", "yellow", "notebg" }, { depthbar, N_("depth bar"), "depthbar", "IndianRed", "depthbar" }, @@ -186,7 +185,7 @@ LColor::color LColor::getFromGUIName(string const & guiname) const InfoTab::const_iterator ici = infotab.begin(); InfoTab::const_iterator end = infotab.end(); for (; ici != end; ++ici) { - if (!compare_no_case(_(ici->second.guiname), guiname)) + if (!compare_ascii_no_case(_(ici->second.guiname), guiname)) return ici->first; } return LColor::inherit; @@ -199,7 +198,7 @@ LColor::color LColor::getFromLyXName(string const & lyxname) const InfoTab::const_iterator ici = infotab.begin(); InfoTab::const_iterator end = infotab.end(); for (; ici != end; ++ici) { - if (!compare_no_case(ici->second.lyxname, lyxname)) + if (!compare_ascii_no_case(ici->second.lyxname, lyxname)) return ici->first; } return LColor::inherit;