]> git.lyx.org Git - features.git/commitdiff
Fix crash when mutating eqnarray-like environments with labeled lines
authorEnrico Forestieri <forenr@lyx.org>
Thu, 19 Aug 2010 07:28:49 +0000 (07:28 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 19 Aug 2010 07:28:49 +0000 (07:28 +0000)
to display equations.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35163 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 980801d84d6f171318f03d30cd3c6120abf2c37c..4fd4afe992e731565537dd376db0fdc1af8c2555 100644 (file)
@@ -1052,6 +1052,7 @@ void InsetMathHull::mutate(HullType newtype)
                        for (row_type row = 0; row < nrows(); ++row) {
                                if (label_[row]) {
                                        label_[0] = label_[row];
+                                       label_[row] = 0;
                                        break;
                                }
                        }