]> git.lyx.org Git - features.git/commitdiff
Avoid random kerning values.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 26 Mar 2007 00:05:28 +0000 (00:05 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 26 Mar 2007 00:05:28 +0000 (00:05 +0000)
* src/mathed/MathData.C
(MathArray::metrics): Explicitly initialize kerning_ as it may
contain random data when the nucleus is an empty MathFont inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17560 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathData.C

index 22f2bda56df0f6915f7e7ae5efc26bd59dbe76d3..b2ef50fb97f9196f07827f7f880ba5b405ff6df7 100644 (file)
@@ -251,6 +251,7 @@ void MathArray::metrics(MetricsInfo & mi) const
        mindes_ = (3 * xascent) / 4;
        slevel_ = (4 * xascent) / 5;
        sshift_ = xascent / 4;
+       kerning_ = 0;
 
        if (empty())
                return;