]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
Streamlining CollapseStatus stuff
[lyx.git] / src / TextClass.cpp
index 9143bf2ca202b36877293937d4bb7a8f87490dc7..77348f28195423cb21c8e52f181cc95f413939ae 100644 (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]; 
 }