diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 98f3f6dd5a..c4d9d7481a 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -687,7 +687,16 @@ void InsetMathHull::addRow(row_type row) { if (!rowChangeOK()) 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); InsetMathGrid::addRow(row); }