X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathData.cpp;h=9bfd558fe2856d8e1475648b8c9b1963255cf25a;hb=59fa0b25928b43c8d32d19a6193dc3bd07716947;hp=0676dc732a7b72490c428331f12ec669f4931a93;hpb=d02244c8fbce89ee928af769a686b2b1036c0a36;p=lyx.git diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index 0676dc732a..9bfd558fe2 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -48,7 +48,7 @@ namespace lyx { MathData::MathData(Buffer * buf, const_iterator from, const_iterator to) : base_type(from, to), minasc_(0), mindes_(0), slevel_(0), - sshift_(0), kerning_(0), buffer_(buf) + sshift_(0), buffer_(buf) {} @@ -282,7 +282,6 @@ void MathData::metrics(MetricsInfo & mi, Dimension & dim, bool tight) const MathRow mrow(mi, this); mrow.metrics(mi, dim); - kerning_ = mrow.kerning(bv); // Set a minimal ascent/descent for the cell if (tight) @@ -381,6 +380,12 @@ void MathData::drawT(TextPainter & pain, int x, int y) const } +int MathData::kerning(BufferView const * bv) const +{ + return bv->mathRow(this).kerning(bv); +} + + void MathData::updateBuffer(ParIterator const & it, UpdateType utype) { // pass down