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
This commit is contained in:
André Pönitz 2002-10-24 10:15:34 +00:00
parent 4109d4b208
commit 3281e30631
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black) MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black)
: name_(nm), final_(final), black_(black) : MathNestInset(1), name_(nm), final_(final), black_(black)
{} {}

View File

@ -2,7 +2,7 @@
#ifndef MATH_UNKNOWNINSET_H #ifndef MATH_UNKNOWNINSET_H
#define MATH_UNKNOWNINSET_H #define MATH_UNKNOWNINSET_H
#include "math_diminset.h" #include "math_nestinset.h"
#ifdef __GNUG__ #ifdef __GNUG__
#pragma interface #pragma interface
@ -11,7 +11,7 @@
/** /**
Unknowntions or LaTeX names for objects that we really don't know Unknowntions or LaTeX names for objects that we really don't know
*/ */
class MathUnknownInset : public MathDimInset { class MathUnknownInset : public MathNestInset {
public: public:
/// ///
explicit MathUnknownInset(string const & name, explicit MathUnknownInset(string const & name,