From: Guillaume Munch Date: Tue, 27 Dec 2016 18:25:46 +0000 (+0100) Subject: Status bar information for InsetMathKern X-Git-Tag: 2.3.0alpha1~566 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=750cbde62e6e9214b06a8537d65a202d1bfc9619;p=lyx.git 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. --- 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: