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
This commit is contained in:
Tommaso Cucinotta 2011-05-11 19:48:42 +00:00
parent 63ee0ee962
commit 0d9494ae06

View File

@ -1896,9 +1896,13 @@ int InsetMathHull::plaintext(odocstream & os, OutputParams const &) const
// Fix Bug #6139 // Fix Bug #6139
if (type_ == hullRegexp) if (type_ == hullRegexp)
write(wi); write(wi);
else else {
for (idx_type i = 0; i < nargs(); ++i) for (row_type r = 0; r < nrows(); ++r) {
wi << (i == 0 ? "" : "\t") << cell(i); for (col_type c = 0; c < ncols(); ++c)
wi << (c == 0 ? "" : "\t") << cell(index(r, c));
wi << "\n";
}
}
docstring const str = oss.str(); docstring const str = oss.str();
os << str; os << str;
return str.size(); return str.size();