From 3281e30631f98df1cabdf72620cf0c613cd86305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 24 Oct 2002 10:15:34 +0000 Subject: [PATCH] Let UnknownInset inherit from NestInset instead of DimInset to enable it to store the selection while the macro name is typed. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5490 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_unknowninset.C | 2 +- src/mathed/math_unknowninset.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mathed/math_unknowninset.C b/src/mathed/math_unknowninset.C index c54562514a..aadee3e4ee 100644 --- a/src/mathed/math_unknowninset.C +++ b/src/mathed/math_unknowninset.C @@ -11,7 +11,7 @@ MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black) - : name_(nm), final_(final), black_(black) + : MathNestInset(1), name_(nm), final_(final), black_(black) {} diff --git a/src/mathed/math_unknowninset.h b/src/mathed/math_unknowninset.h index 1e6c2d6822..31a76d5c40 100644 --- a/src/mathed/math_unknowninset.h +++ b/src/mathed/math_unknowninset.h @@ -2,7 +2,7 @@ #ifndef MATH_UNKNOWNINSET_H #define MATH_UNKNOWNINSET_H -#include "math_diminset.h" +#include "math_nestinset.h" #ifdef __GNUG__ #pragma interface @@ -11,7 +11,7 @@ /** Unknowntions or LaTeX names for objects that we really don't know */ -class MathUnknownInset : public MathDimInset { +class MathUnknownInset : public MathNestInset { public: /// explicit MathUnknownInset(string const & name, -- 2.39.5