From: André Pönitz Date: Thu, 2 Aug 2001 09:59:09 +0000 (+0000) Subject: fix mis-alignment of eqnarray columns X-Git-Tag: 1.6.10~20941 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=297697dd7063f13c9b3058654b6666d9fb981c92;p=features.git fix mis-alignment of eqnarray columns git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2404 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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()