X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_charinset.h;h=76a1feab001a61fb5476971bf6ae88a0504ad211;hb=12ac7f339e14c4f76a24f45a21c0697303099145;hp=067affac0bd7b82ac2b300b777c5002de2c1e909;hpb=fa494db882878098537333bb2aad9063ddb046d4;p=lyx.git diff --git a/src/mathed/math_charinset.h b/src/mathed/math_charinset.h index 067affac0b..76a1feab00 100644 --- a/src/mathed/math_charinset.h +++ b/src/mathed/math_charinset.h @@ -30,6 +30,9 @@ public: void metricsT(TextMetricsInfo const & mi, Dimension & dim) const; /// void drawT(TextPainter &, int x, int y) const; + /// + int width() const { return width_; } + /// void write(WriteStream & os) const; /// @@ -46,5 +49,7 @@ public: private: /// the character char char_; + /// cached width + mutable int width_; }; #endif