]> git.lyx.org Git - features.git/commitdiff
Revert r34761 because that was not the right fix that is going to be
authorEnrico Forestieri <forenr@lyx.org>
Mon, 5 Jul 2010 12:25:48 +0000 (12:25 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 5 Jul 2010 12:25:48 +0000 (12:25 +0000)
committed shortly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34762 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMath.h
src/mathed/InsetMathGrid.cpp

index aae24abd0ddb2a275fcc969489bcc18bff20a2a4..e043a733fbc95a4a7e013339ac7129dd3453b4eb 100644 (file)
@@ -68,11 +68,8 @@ class InsetMathScript;
 class InsetMathString;
 class InsetMathSpace;
 class InsetMathSpecialChar;
-class InsetMathSubstack;
 class InsetMathSymbol;
-class InsetMathTabular;
 class InsetMathUnknown;
-class InsetMathXYMatrix;
 
 class InsetMathRef;
 
@@ -151,15 +148,9 @@ public:
        virtual InsetMathSpace const    * asSpaceInset() const    { return 0; }
        virtual InsetMathString         * asStringInset()         { return 0; }
        virtual InsetMathString const   * asStringInset() const   { return 0; }
-       virtual InsetMathSubstack       * asSubstackInset()       { return 0; }
-       virtual InsetMathSubstack const * asSubstackInset() const { return 0; }
        virtual InsetMathSymbol const   * asSymbolInset() const   { return 0; }
-       virtual InsetMathTabular        * asTabularInset()        { return 0; }
-       virtual InsetMathTabular const  * asTabularInset() const  { return 0; }
        virtual InsetMathUnknown        * asUnknownInset()        { return 0; }
        virtual InsetMathUnknown const  * asUnknownInset() const  { return 0; }
-       virtual InsetMathXYMatrix       * asXYMatrixInset()       { return 0; }
-       virtual InsetMathXYMatrix const * asXYMatrixInset() const { return 0; }
        virtual InsetMathRef            * asRefInset()            { return 0; }
        virtual InsetMathSpecialChar const * asSpecialCharInset() const { return 0; }
 
index b4c3b2b611fa40bccb3f7f3358c994dad2e26149..ad7b1140a4640cc398cc61546748dc40822ea919 100644 (file)
@@ -646,10 +646,6 @@ void InsetMathGrid::updateBuffer(ParIterator const & it, UpdateType utype)
 
 docstring InsetMathGrid::eolString(row_type row, bool fragile, bool last_eoln) const
 {
-       // Never add \\ on the last empty line of substack, tabular and xymatrix
-       if (asSubstackInset() || asTabularInset() || asXYMatrixInset())
-               last_eoln = false;
-
        docstring eol;
 
        if (!rowinfo_[row].crskip_.zero())