]> git.lyx.org Git - lyx.git/blobdiff - src/font.C
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / font.C
index 455a4e9b48918cbbb3f8ceccb06b7657efc3fefa..65e2b427665992486acba1ed41f683d6b117e32e 100644 (file)
@@ -177,7 +177,7 @@ int lyxfont::width(XChar2b const * s, int n, LyXFont const & f)
        } else {
                // emulate smallcaps since X doesn't support this
                unsigned int result = 0;
-               static XChar2b c = {0, 0};
+               static XChar2b c;
                LyXFont smallfont(f);
                smallfont.decSize().decSize().setShape(LyXFont::UP_SHAPE);
                for (int i = 0; i < n; ++i) {