More general fix for part of 5403.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27100 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-10-25 12:49:49 +00:00
parent 2efe55640a
commit bdc1d80151

View File

@ -46,11 +46,11 @@ namespace {
InsetLayout::InsetDecoration translateDecoration(std::string const & str)
{
if (str == "classic" || str == "Classic")
if (support::compare_ascii_no_case(str, "classic") == 0)
return InsetLayout::Classic;
if (str == "minimalistic" || str == "Minimalistic")
if (support::compare_ascii_no_case(str, "minimalistic") == 0)
return InsetLayout::Minimalistic;
if (str == "conglomerate" || str == "Conglomerate")
if (support::compare_ascii_no_case(str, "conglomerate") == 0)
return InsetLayout::Conglomerate;
return InsetLayout::Default;
}