]> git.lyx.org Git - features.git/commitdiff
Fix the math output mess I caused in r30822.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 4 Aug 2009 20:34:53 +0000 (20:34 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 4 Aug 2009 20:34:53 +0000 (20:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30860 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathGrid.cpp

index fb9eaa3b4fc3b4e3c487301b69d795bcb948791e..52070a374a49c4ca303484f08725c58bea8cf5ca 100644 (file)
@@ -1009,7 +1009,9 @@ void InsetMathGrid::write(WriteStream & os,
                eol = eolString(row, os.fragile());
                os << eol;
                // append newline only if line wasn't completely empty
-               if (!(emptyline && eol.empty())) 
+               // and the formula is not written on a single line
+               bool const empty = emptyline && eol.empty();
+               if (!empty && nrows() > 1)
                        os << "\n";
        }
        // @TODO use end_row instead of nrows() ?