fix output of abnormally short lines in .lyx files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30192 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-06-19 15:32:51 +00:00
parent 16f119cab5
commit 2eaac90ca5

View File

@ -1189,15 +1189,16 @@ void Paragraph::write(ostream & os, BufferParams const & bparams,
int column = 0;
for (pos_type i = 0; i <= size(); ++i) {
Change change = lookupChange(i);
Change const change = lookupChange(i);
Changes::lyxMarkChange(os, column, running_change, change);
running_change = change;
if (i == size())
break;
// Write font changes
Font const & font2 = getFontSettings(bparams, i);
// Write font changes (ignore spelling markers)
Font font2 = getFontSettings(bparams, i);
font2.setMisspelled(false);
if (font2 != font1) {
font2.lyxWriteChanges(font1, os);
column = 0;