]> git.lyx.org Git - features.git/commitdiff
fix output of abnormally short lines in .lyx files
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 19 Jun 2009 15:32:51 +0000 (15:32 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 19 Jun 2009 15:32:51 +0000 (15:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30192 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 6330454383b12c537299d04482bc5810596e307f..d5a607753b2224b043475fef1aff68f6730a3d6e 100644 (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;