]> git.lyx.org Git - features.git/commitdiff
Let UnknownInset inherit from NestInset instead of DimInset to enable it to
authorAndré Pönitz <poenitz@gmx.net>
Thu, 24 Oct 2002 10:15:34 +0000 (10:15 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 24 Oct 2002 10:15:34 +0000 (10:15 +0000)
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
src/mathed/math_unknowninset.h

index c54562514ae2df051c973fe884792d34892a3c9a..aadee3e4eec607291d63ddbec2dd57f9a618a678 100644 (file)
@@ -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)
 {}
 
 
index 1e6c2d6822090d00631f8de408dee1f98c6d3478..31a76d5c40a854848a6065861ddf7497c4782c79 100644 (file)
@@ -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,