]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_matrixinset.C
Small bugfixes and cosmetic changes
[features.git] / src / mathed / math_matrixinset.C
index e8425423920a515d5380812bd07c0f6100b9ef85..c185e874e3eea30d32b58a10381256e630695e7c 100644 (file)
@@ -475,10 +475,20 @@ void MathMatrixInset::mutate(short newtype)
                case LM_OT_EQNARRAY:
                        switch (newtype) {
                                case LM_OT_SIMPLE:
-                               case LM_OT_EQUATION:
+                               case LM_OT_EQUATION: {
+                                       string label;
+                                       bool allnonum = true;
+                                       for (int r = 0; r < nrows(); ++r) {
+                                               label += label_[r];
+                                               if (!nonum_[r])
+                                                       allnonum = false;
+                                       }
                                        glueall();
                                        mutate(newtype);
+                                       label_[0] = label;
+                                       nonum_[0] = allnonum;
                                        break;
+                               }
 
                                case LM_OT_ALIGN:
                                default: