]> git.lyx.org Git - features.git/commitdiff
Status bar information for InsetMathKern
authorGuillaume Munch <gm@lyx.org>
Tue, 27 Dec 2016 18:25:46 +0000 (19:25 +0100)
committerGuillaume Munch <gm@lyx.org>
Tue, 27 Dec 2016 18:25:46 +0000 (19:25 +0100)
\mkern is invisible in mathed as a consequence of 10c8d51b. Add information in
the status bar when it is there.

src/mathed/InsetMathKern.cpp
src/mathed/InsetMathKern.h

index 8373b61fbf425988ff15afecaa9b0cd98cb0b97f..d223887e3b6c2d712f0c9a4a1b577dc1e285b70c 100644 (file)
@@ -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
index b063e06d5b1dd3129578653e73edd38fb46db227..e985ad4dc3bc1e2515fbca76dfaa6ec1ce7b8101 100644 (file)
@@ -43,6 +43,8 @@ public:
        ///
        void htmlize(HtmlStream &) const { }
        ///
+       void infoize2(odocstream & os) const;
+       ///
        InsetCode lyxCode() const { return MATH_KERN_CODE; }
 
 private: