"wrong numbering of multline environment inside LyX"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23665 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-11 17:54:05 +00:00
parent 68cd81bcc1
commit ed4919cd1a

View File

@ -687,7 +687,16 @@ void InsetMathHull::addRow(row_type row)
{ {
if (!rowChangeOK()) if (!rowChangeOK())
return; return;
nonum_.insert(nonum_.begin() + row + 1, !numberedType());
bool numbered = numberedType();
if (type_ == hullMultline) {
if (row + 1 == nrows())
nonum_[row] = true;
else
numbered = false;
}
nonum_.insert(nonum_.begin() + row + 1, !numbered);
label_.insert(label_.begin() + row + 1, dummy_pointer); label_.insert(label_.begin() + row + 1, dummy_pointer);
InsetMathGrid::addRow(row); InsetMathGrid::addRow(row);
} }