X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_plaintext.cpp;h=8c5655d39b6e315b7ab85743cbb94f67ae9b5ea5;hb=71a57e0f4df9d2b860ec2d060cc30043206c335d;hp=2dfc836f1aceb4906cbc596e532cb63bcbdc65dd;hpb=ecef54500d4d77baf4fa47eac2253679875ac08c;p=lyx.git diff --git a/src/output_plaintext.cpp b/src/output_plaintext.cpp index 2dfc836f1a..8c5655d39b 100644 --- a/src/output_plaintext.cpp +++ b/src/output_plaintext.cpp @@ -188,7 +188,7 @@ void writePlaintextParagraph(Buffer const & buf, if (os.str().size() > max_length) break; - char_type c = par.getUChar(buf.params(), i); + char_type c = par.getUChar(buf.params(), runparams, i); if (par.isInset(i) || c == ' ') { if (runparams.linelen > 0 && @@ -217,7 +217,7 @@ void writePlaintextParagraph(Buffer const & buf, switch (c) { case ' ': os << ' '; - currlinelen++; + ++currlinelen; break; case '\0':