]> git.lyx.org Git - features.git/blobdiff - src/lyxfont.C
apply the ostream changes to mathed, some other small related things
[features.git] / src / lyxfont.C
index e245f92648791a295d32e796aeb419f86d870f9a..f481b1d9eb4719cb65b7620352c24d52bd12fad2 100644 (file)
@@ -693,8 +693,8 @@ int LyXFont::latexWriteStartChanges(ostream & os, LyXFont const & base,
        if (f.family() != INHERIT_FAMILY) {
                os << '\\'
                   << LaTeXFamilyNames[f.family()]
-                  << '{'
-                  << LaTeXFamilyNames[f.family()].length() + 2;
+                  << '{';
+               count += LaTeXFamilyNames[f.family()].length() + 2;
                env = true; //We have opened a new environment
        }
        if (f.series() != INHERIT_SERIES) {