X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRoot.cpp;h=38ffb18ff3cecb28134fd6537eab05bed40da1c4;hb=f67cf6f4bb3e3d22ac9aebfa22027c3537cbdf61;hp=722e16792e4c7fe1cd4fc950b414df1b6be52489;hpb=32ee4c13cf3deb6dc7eb0b25e3dee2efd8d99967;p=lyx.git diff --git a/src/mathed/InsetMathRoot.cpp b/src/mathed/InsetMathRoot.cpp index 722e16792e..38ffb18ff3 100644 --- a/src/mathed/InsetMathRoot.cpp +++ b/src/mathed/InsetMathRoot.cpp @@ -62,12 +62,12 @@ void InsetMathRoot::draw(PainterInfo & pi, int x, int y) const int xp[4]; int yp[4]; pi.pain.line(x + dim.width(), y - a + 1, - x + w + 4, y - a + 1, Color_math); + x + w + 4, y - a + 1, pi.base.font.color()); xp[0] = x + w + 4; yp[0] = y - a + 1; xp[1] = x + w; yp[1] = y + d; xp[2] = x + w - 2; yp[2] = y + (d - a)/2 + 2; xp[3] = x + w - 5; yp[3] = y + (d - a)/2 + 4; - pi.pain.lines(xp, yp, 4, Color_math); + pi.pain.lines(xp, yp, 4, pi.base.font.color()); drawMarkers(pi, x, y); } @@ -133,10 +133,10 @@ void InsetMathRoot::htmlize(HtmlStream & os) const void InsetMathRoot::validate(LaTeXFeatures & features) const { if (features.runparams().math_flavor == OutputParams::MathAsHTML) - features.addPreambleSnippet(""); + "span.root sup{font-size: 75%;}"); + InsetMathNest::validate(features); } } // namespace lyx