Make the factory aware of the new insets
-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Index: src/factory.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/factory.C,v
retrieving revision 1.23
diff -u -p -r1.23 factory.C
--- src/factory.C       12 Mar 2003 11:52:22 -0000      1.23
+++ src/factory.C       12 Mar 2003 13:46:25 -0000
@@ -23,6 +23,7 @@
 #include "insets/insetbibtex.h"
 #include "insets/insetcaption.h"
 #include "insets/insetcite.h"
+#include "insets/insetenv.h"
 #include "insets/insetert.h"
 #include "insets/insetexternal.h"
 #include "insets/insetfloat.h"
@@ -159,6 +160,9 @@ Inset * createInset(FuncRequest const & 
        case LFUN_PARENTINSERT:
                return new InsetParent(
                        InsetCommandParams("lyxparent", cmd.argument), *bv->buffer());
+
+       case LFUN_ENVIRONMENT_INSERT:
+               return new InsetEnvironment(params, cmd.argument);
 
 #if 0
        case LFUN_INSET_LIST:

Reply via email to