Commit 23c0fcf4 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed again #kumir2-1900

parent 9df6987f
......@@ -807,7 +807,7 @@ QByteArray TextDocument::toRtf(uint fromLine, uint toLine) const
for (uint j=0; j<chunks.size(); j++) {
result.append(chunks[j].data);
}
if (fromLine!=toLine && i<toLine-1) {
if (fromLine!=toLine && i<toLine) {
result.append("\\par\r\n");
}
}
......@@ -839,7 +839,7 @@ QByteArray TextDocument::toRtf(uint fromLine, uint toLine) const
result.append(codec->fromUnicode(text));
result.append("}");
}
if (fromLine!=toLine && i<toLine-1) {
if (fromLine!=toLine && i<toLine) {
result.append("\\par\r\n");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment