From e9c09e42d71c625798d8e1d2b2b7ee936284cdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 13 Mar 2003 11:00:31 +0000 Subject: [PATCH] simple factory extension fix bug noticed by Angus git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6480 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 7 ++++++- src/factory.C | 4 ++++ src/insets/insetenv.C | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b711da17e5..04c3477b79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ + +2003-03-13 André Pönitz + + * factory.C: make it aware of InsetEnv + 2003-03-13 Lars Gullik Bjønnes * text2.C (setCursor): never ask for one past last @@ -141,7 +146,7 @@ 2003-03-11 André Pönitz - * factory.C: make it aware of InsetHFill (not active yet) + * factory.C: make it aware of InsetHFill 2003-03-10 Lars Gullik Bjønnes diff --git a/src/factory.C b/src/factory.C index 24cd050bfd..6fbcb377b7 100644 --- a/src/factory.C +++ b/src/factory.C @@ -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" @@ -160,6 +161,9 @@ Inset * createInset(FuncRequest const & cmd) 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: return new InsetList; diff --git a/src/insets/insetenv.C b/src/insets/insetenv.C index 74c200cda7..b17fe08c2e 100644 --- a/src/insets/insetenv.C +++ b/src/insets/insetenv.C @@ -51,7 +51,7 @@ Inset * InsetEnvironment::clone(Buffer const &, bool same_id) const void InsetEnvironment::write(Buffer const * buf, ostream & os) const { - os << "Environment" << getInsetName() << "\"\n"; + os << "Environment " << getInsetName() << "\"\n"; InsetCollapsable::write(buf, os); }