]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.C
re-enable mathrm toggling with C-m (was disabled by accident)
[lyx.git] / src / lyxtextclass.C
index 7fdb478d96bb26b6b507b724ba2b70bb59bd7803..ff19fbc4934c40c6e28ae83dabb78f299f5fd4da 100644 (file)
@@ -505,6 +505,8 @@ bool LyXTextClass::hasLayout(string const & n) const
 
 LyXLayout const & LyXTextClass::operator[](string const & n) const
 {
+       lyx::Assert(!n.empty());
+       
        if (n.empty())
                lyxerr << "Operator[] called with empty n" << endl;
        
@@ -530,6 +532,8 @@ LyXLayout const & LyXTextClass::operator[](string const & n) const
 
 LyXLayout & LyXTextClass::operator[](string const & n)
 {
+       lyx::Assert(!n.empty());
+
        if (n.empty())
                lyxerr << "Operator[] called with empty n" << endl;