]> git.lyx.org Git - lyx.git/commitdiff
Correctly set the breakline guard.
authorEnrico Forestieri <forenr@lyx.org>
Thu, 18 Nov 2010 21:15:59 +0000 (21:15 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 18 Nov 2010 21:15:59 +0000 (21:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36381 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathStream.cpp

index e616cd0e836612438a65d2b34bbc749efe2d8217..c74123c448ae72ba31ae1aedb2fa06a235011bf9 100644 (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;
 }