]> git.lyx.org Git - features.git/commitdiff
Fixing positioning of cells in multi-row align environments.
authorTommaso Cucinotta <tommaso@lyx.org>
Wed, 11 May 2011 19:44:27 +0000 (19:44 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Wed, 11 May 2011 19:44:27 +0000 (19:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38714 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index 4e66925d2013435daefaa79684b88800efefb3e1..7be9d7d6ed95a58adab0f15f9cd6eb1e9d078918 100644 (file)
@@ -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();