revert inadvertent patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19608 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-08-16 16:18:04 +00:00
parent 06c43ec975
commit 412e3b8052

View File

@ -1095,18 +1095,7 @@ Counters & TextClass::counters() const
InsetLayout const & TextClass::insetlayout(docstring const & name) const
{
docstring n = name;
while (!n.empty()) {
if (insetlayoutlist_.count(n) > 0)
return insetlayoutlist_[n];
docstring::size_type i = n.rfind(':');
if (i != string::npos) // delimiter was found
n = n.substr(i + 1);
else
break;
}
static const InsetLayout empty;
return empty;
return insetlayoutlist_[name];
}