From 412e3b8052385a81a30f1e8164d44cf191e951a8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 16 Aug 2007 16:18:04 +0000 Subject: [PATCH] revert inadvertent patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19608 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextClass.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 9143bf2ca2..77348f2819 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -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]; }