[EMAIL PROTECTED] wrote:
Author: lasgouttes
Date: Thu Aug 16 17:26:00 2007
New Revision: 19607

URL: http://www.lyx.org/trac/changeset/19607
Log:
rename TextClass::ctrs_ to counters_

Thanks but you did a bit more, not sure that was on purpose:

InsetLayout const & TextClass::insetlayout(docstring const & name) const { - return insetlayoutlist_[name]; + 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;
 }

Reply via email to