]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.h
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_symbolinset.h
index f8f2fb276b487dbad784925a3cb06e3fd77ae0d7..ebda7fc20f2d4e9ab8d67aeb4c04f60cbdce1fd8 100644 (file)
@@ -34,6 +34,9 @@ public:
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
+       ///
+       int width() const { return width_; }
+
        ///
        bool isRelOp() const;
        /// do we take scripts?
@@ -69,6 +72,8 @@ private:
        latexkeys const * sym_;
        ///
        mutable int h_;
+       /// cached width
+       mutable int width_;
        ///
        mutable bool scriptable_;
 };