fix bug discovered by Garst

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2729 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-09-12 07:48:48 +00:00
parent 6a3d139c9e
commit 4c973a6a7e

View 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";