Backport fix for bug #7547.

We need to check whether we are in a multirow here.
Otherwise, we were asking to construct strings of random size at a
certain point, e.g., two 2GB strings, in one case I saw.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38705 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-05-11 14:14:09 +00:00
parent 0ecdd259d9
commit 691107bb7a

View File

@ -3177,7 +3177,7 @@ void Tabular::plaintext(odocstream & os,
if (!onlydata && plaintextTopHLine(os, r, clen)) if (!onlydata && plaintextTopHLine(os, r, clen))
os << docstring(depth * 2, ' '); os << docstring(depth * 2, ' ');
for (col_type c = 0; c < ncols(); ++c) { for (col_type c = 0; c < ncols(); ++c) {
if (isPartOfMultiColumn(r, c)) if (isPartOfMultiColumn(r, c) || isPartOfMultiRow(r,c))
continue; continue;
if (onlydata && c > 0) if (onlydata && c > 0)
// we don't use operator<< for single UCS4 character. // we don't use operator<< for single UCS4 character.