]> git.lyx.org Git - features.git/commitdiff
fix bug discovered by Garst
authorAndré Pönitz <poenitz@gmx.net>
Wed, 12 Sep 2001 07:48:48 +0000 (07:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 12 Sep 2001 07:48:48 +0000 (07:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2729 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_gridinset.C

index 944d87dccdafb5734510c078c2988acdf7307b7d..658f68477b4352004986f88fc4a42960a994a7a1 100644 (file)
@@ -268,7 +268,7 @@ string MathGridInset::eolString(int row) const
 
        // make sure an upcoming '[' does not break anything
        MathArray const & c = cell(index(row + 1, 0));
-       if (c.begin() && c.begin()->nucleus()->getChar() == '[')
+       if (c.size() && c.begin()->nucleus()->getChar() == '[')
                return "\\\\[0pt]\n";
 
        return "\\\\\n";