X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=0257ed0c45f1c56dad489b94ccbda9811dc89e2d;hb=e43ba7cf46779c6a8394310b9487ebe2c75132b2;hp=f2e2d4bcb88e5d197730d29f39f08cfdd5ea3fb2;hpb=c466baaa5b99e44ea25616556bd0918197f4b54c;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index f2e2d4bcb8..0257ed0c45 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -553,22 +553,6 @@ void Inset::drawMarkers(PainterInfo & pi, int x, int y) const } -void Inset::drawMarkers2(PainterInfo & pi, int x, int y) const -{ - ColorCode pen_color = mouseHovered(pi.base.bv) || editing(pi.base.bv)? - Color_mathframe : Color_mathcorners; - - drawMarkers(pi, x, y); - Dimension const dim = dimension(*pi.base.bv); - int const t = x + dim.width() - 1; - int const a = y - dim.ascent(); - pi.pain.line(x, a + 3, x, a, pen_color); - pi.pain.line(t, a + 3, t, a, pen_color); - pi.pain.line(x, a, x + 3, a, pen_color); - pi.pain.line(t - 3, a, t, a, pen_color); -} - - bool Inset::editing(BufferView const * bv) const { return bv->cursor().isInside(this);