From 750cbde62e6e9214b06a8537d65a202d1bfc9619 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Tue, 27 Dec 2016 19:25:46 +0100 Subject: [PATCH] Status bar information for InsetMathKern \mkern is invisible in mathed as a consequence of 10c8d51b. Add information in the status bar when it is there. --- src/mathed/InsetMathKern.cpp | 8 ++++++++ src/mathed/InsetMathKern.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/mathed/InsetMathKern.cpp b/src/mathed/InsetMathKern.cpp index 8373b61fbf..d223887e3b 100644 --- a/src/mathed/InsetMathKern.cpp +++ b/src/mathed/InsetMathKern.cpp @@ -77,4 +77,12 @@ void InsetMathKern::normalize(NormalStream & os) const } +void InsetMathKern::infoize2(odocstream & os) const +{ + os << "Kern"; + if (!wid_.empty()) + os << ": " << from_utf8(wid_.asLatexString()); +} + + } // namespace lyx diff --git a/src/mathed/InsetMathKern.h b/src/mathed/InsetMathKern.h index b063e06d5b..e985ad4dc3 100644 --- a/src/mathed/InsetMathKern.h +++ b/src/mathed/InsetMathKern.h @@ -43,6 +43,8 @@ public: /// void htmlize(HtmlStream &) const { } /// + void infoize2(odocstream & os) const; + /// InsetCode lyxCode() const { return MATH_KERN_CODE; } private: -- 2.39.5