Correctly set the breakline guard.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36381 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-11-18 21:15:59 +00:00
parent 8fa5778221
commit a1927c00d2

View File

@ -222,10 +222,9 @@ WriteStream & operator<<(WriteStream & ws, char c)
ws.pendingSpace(false);
}
ws.os() << c;
if (c == '\n') {
if (c == '\n')
ws.addlines(1);
ws.canBreakLine(false);
}
ws.canBreakLine(c != '\n');
return ws;
}