]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBrace.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathBrace.cpp
index fa50c461e2797d8b3fd5463aae32293eac55da93..2ad39048e2d306f42cfbc29983d187348079195f 100644 (file)
@@ -53,14 +53,13 @@ void InsetMathBrace::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.des = max(dim0.des, t.des);
        dim.wid = dim0.width() + 2 * t.wid;
        metricsMarkers(dim);
-       // Cache the inset dimension. 
-       setDimCache(mi, dim);
 }
 
 
 void InsetMathBrace::draw(PainterInfo & pi, int x, int y) const
 {
        FontInfo font = pi.base.font;
+       font.setShape(UP_SHAPE);
        font.setColor(Color_latex);
        Dimension t = theFontMetrics(font).dimension('{');
        pi.pain.text(x, y, '{', font);