commit 750cbde62e6e9214b06a8537d65a202d1bfc9619
Author: Guillaume Munch <[email protected]>
Date:   Tue Dec 27 19:25:46 2016 +0100

    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(+), 0 deletions(-)

diff --git a/src/mathed/InsetMathKern.cpp b/src/mathed/InsetMathKern.cpp
index 8373b61..d223887 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 b063e06..e985ad4 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:

Reply via email to