]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetfloatlist.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetfloatlist.C
index 3a4aeee2e89dbc38d9f21ca958925ca2370fa552..449312d34755c639ae7e9fa9b35a262e99ce04c3 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "support/lstrings.h"
 
+using namespace lyx::support;
+
 using std::ostream;
 using std::endl;
 
@@ -58,9 +60,9 @@ string const InsetFloatList::getScreenLabel(Buffer const * buf) const
 }
 
 
-Inset::Code InsetFloatList::lyxCode() const
+InsetOld::Code InsetFloatList::lyxCode() const
 {
-       return Inset::FLOAT_LIST_CODE;
+       return InsetOld::FLOAT_LIST_CODE;
 }
 
 
@@ -141,7 +143,7 @@ int InsetFloatList::ascii(Buffer const * buffer, ostream & os, int) const
 {
        os << getScreenLabel(buffer) << "\n\n";
 
-       toc::asciiTocList(getCmdName(), buffer, os);
+       lyx::toc::asciiTocList(getCmdName(), buffer, os);
 
        os << "\n";
        return 0;