From ad79ac406f9c8fc85880cfeb5416b0299ee9a617 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 3 Feb 2017 10:47:33 +0100 Subject: [PATCH] Fixup 89662a68: remove markers that should not be there InsetMathDelim does not need markers because the delimiters are visually enough. CommandInset (like InsetMathRef) does have cells, but they are hidden (only for storage). Therefore the default InsetMath::markers() method mistakenly added markers. In practice, the markers were never active (since the cursor cannot go into the inset), but some space was reserved for them. --- src/mathed/CommandInset.h | 2 ++ src/mathed/InsetMathDelim.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mathed/CommandInset.h b/src/mathed/CommandInset.h index 770ecb388d..68d0d13c53 100644 --- a/src/mathed/CommandInset.h +++ b/src/mathed/CommandInset.h @@ -28,6 +28,8 @@ public: explicit CommandInset(Buffer * buf, docstring const & name, bool needs_math_mode = true); /// + marker_type marker() const { return NO_MARKER; } + /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; diff --git a/src/mathed/InsetMathDelim.h b/src/mathed/InsetMathDelim.h index 5a7e816404..bc49ce3c59 100644 --- a/src/mathed/InsetMathDelim.h +++ b/src/mathed/InsetMathDelim.h @@ -32,6 +32,8 @@ public: InsetMathDelim const * asDelimInset() const { return this; } /// MathClass mathClass() const { return MC_INNER; } + /// + marker_type marker() const { return NO_MARKER; } /// is it (...)? bool isParenthesis() const; /// is it [...]?