]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.h
Temporarily fix cursor positioning within mathed.
[lyx.git] / src / mathed / InsetMathSymbol.h
index ad78aed38fbeb62a1b7337183fb89482337f05d3..3068d943abd719715c4fb3e54028dff0610ec492 100644 (file)
@@ -33,7 +33,9 @@ public:
        ///
        explicit InsetMathSymbol(docstring const & name);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       ///
+       Dimension const dimension(BufferView const &) const { return dim_; }
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -81,6 +83,8 @@ private:
        mutable int kerning_;
        ///
        mutable bool scriptable_;
+       /// FIXME: move this out to BufferView
+       mutable Dimension dim_;
 };
 
 } // namespace lyx