]> git.lyx.org Git - features.git/blobdiff - src/mathed/formula.C
some support for the [x][x]alignat environments
[features.git] / src / mathed / formula.C
index 8e7f6ad91b51034f661b7e40cafc8584a7b12f6a..b2ef1189caf7a0f6545f0381932d1a1730c8ae8d 100644 (file)
@@ -290,6 +290,15 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
                        break;
                }
 
+               case LFUN_MATH_COLUMN_INSERT:
+               {
+                       if (par_->getType() == LM_OT_ALIGN)
+                               par_->mutate(LM_OT_ALIGNAT);
+                       par_->addCol(par_->ncols());
+                       mathcursor->normalize();
+                       updateLocal(bv, true);
+               }
+
                default:
                        result = InsetFormulaBase::localDispatch(bv, action, arg);
        }
@@ -344,6 +353,7 @@ void InsetFormula::validate(LaTeXFeatures & features) const
        par_->validate(features);
 }
 
+
 bool InsetFormula::insetAllowed(Inset::Code code) const
 {
        return code == Inset::LABEL_CODE; 
@@ -371,5 +381,5 @@ int InsetFormula::width(BufferView *, LyXFont const &) const
 
 MathInsetTypes InsetFormula::getType() const
 {
-       return par_->getType();;
+       return par_->getType();
 }