From 297697dd7063f13c9b3058654b6666d9fb981c92 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 2 Aug 2001 09:59:09 +0000 Subject: [PATCH] fix mis-alignment of eqnarray columns git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2404 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 2 ++ src/mathed/math_matrixinset.C | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 610ec4362f..c4615360f1 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -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 * formulabase.C: re-enable 'space enlargement' feature diff --git a/src/mathed/math_matrixinset.C b/src/mathed/math_matrixinset.C index a6b8c9e5a4..e2d6038c2d 100644 --- a/src/mathed/math_matrixinset.C +++ b/src/mathed/math_matrixinset.C @@ -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() -- 2.39.2