]> git.lyx.org Git - features.git/commitdiff
fix mis-alignment of eqnarray columns
authorAndré Pönitz <poenitz@gmx.net>
Thu, 2 Aug 2001 09:59:09 +0000 (09:59 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 2 Aug 2001 09:59:09 +0000 (09:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2404 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_matrixinset.C

index 610ec4362f74a24436bb4c16f4574d983c647110..c4615360f179f85ee246a7bf77dd6dbfd9cb8490 100644 (file)
@@ -3,6 +3,8 @@
        * math_cursor.C:
                formulamacro.C: fix memory leaks
 
+       * math_matrixinset.C: fix mis-alignment of eqnarray columns
+
 2001-07-25  André Pönitz  <poenitz@gmx.net>
        
        * formulabase.C: re-enable 'space enlargement' feature
index a6b8c9e5a42ea4c931217cc006afb52bef52d1db..e2d6038c2d25d1960c76e6da9f38d19a3f2e18bb 100644 (file)
@@ -13,7 +13,7 @@
 
 namespace {
 
-string const getAlign(short int type, int cols)
+string getAlign(MathInsetTypes type, int cols)
 {
        string align;
        switch (type) {
@@ -79,7 +79,9 @@ int firstRelOp(MathArray const & array)
 
 MathMatrixInset::MathMatrixInset(MathInsetTypes t)
        : MathGridInset(getCols(t), 1, "formula"), objtype_(t), nonum_(1), label_(1)
-{}
+{
+       halign(getAlign(t, ncols()));
+}
 
 
 MathMatrixInset::MathMatrixInset()