From 0d9494ae060fecf8c236b559e2b9cc15c831ab3a Mon Sep 17 00:00:00 2001 From: Tommaso Cucinotta Date: Wed, 11 May 2011 19:48:42 +0000 Subject: [PATCH] Fixing positioning of cells in multi-row align environments. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38715 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 4e66925d20..7be9d7d6ed 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1896,9 +1896,13 @@ int InsetMathHull::plaintext(odocstream & os, OutputParams const &) const // Fix Bug #6139 if (type_ == hullRegexp) write(wi); - else - for (idx_type i = 0; i < nargs(); ++i) - wi << (i == 0 ? "" : "\t") << cell(i); + else { + for (row_type r = 0; r < nrows(); ++r) { + for (col_type c = 0; c < ncols(); ++c) + wi << (c == 0 ? "" : "\t") << cell(index(r, c)); + wi << "\n"; + } + } docstring const str = oss.str(); os << str; return str.size();