]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclass.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / lyxtextclass.C
index 74be61056f6621a49e60d71f612270913cabebb6..3df1271e40147b24f52fe9389a143c5a5d2380cb 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <algorithm>
 
+using namespace lyx::support;
+
 using std::endl;
 using std::find_if;
 using std::remove_if;
@@ -755,7 +757,7 @@ bool LyXTextClass::hasLayout(string const & n) const
 
 LyXLayout_ptr const & LyXTextClass::operator[](string const & name) const
 {
-       lyx::Assert(!name.empty());
+       Assert(!name.empty());
 
        LayoutList::const_iterator cit =
                find_if(layoutlist_.begin(),
@@ -771,7 +773,7 @@ LyXLayout_ptr const & LyXTextClass::operator[](string const & name) const
                        lyxerr  << " " << it->get()->name() << endl;
 
                // we require the name to exist
-               lyx::Assert(false);
+               Assert(false);
        }
 
        return (*cit);