mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
06c43ec975
commit
412e3b8052
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user