+
+2003-10-01 André Pönitz <poenitz@gmx.net>
+
+ * factory.C: assert early
+
2003-09-26 Lars Gullik Bjønnes <larsbj@gullik.net>
* lyx_main.C: remove the glboal debug object
#include "support/lstrings.h"
#include "support/std_sstream.h"
+#include <boost/assert.hpp>
+
using lyx::support::compare_ascii_no_case;
using std::endl;
inset = new InsetFloatList("table");
} else if (cmdName == "printindex") {
inset = new InsetPrintIndex(inscmd);
+ } else {
+ lyxerr << "unknown CommandInset '" << cmdName << "'" << std::endl;
+ BOOST_ASSERT(false);
}
} else {
if (tmptok == "Quotes") {
inset = new InsetCaption(buf.params());
} else if (tmptok == "FloatList") {
inset = new InsetFloatList;
+ } else {
+ lyxerr << "unknown Inset type '" << tmptok << "'" << std::endl;
+ BOOST_ASSERT(false);
}
- if (inset)
- inset->read(buf, lex);
+ inset->read(buf, lex);
}
return inset;