]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_textinset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_textinset.C
index d60928a79bdb78716ef7006bdf0a62beafe3d0fd..952692be2896f205eee0a27939b0e5a03c5c32b4 100644 (file)
@@ -114,14 +114,14 @@ void MathTextInset::metrics(MetricsInfo & mi, Dimension & dim) const
                        safepos = i;
                        ++spaces;
                        // restart chunk with size of the space
-                       curr = cell(0)[i].width_;
+                       curr = cell(0)[i]->width();
                        continue;
                }
 
                if (c != '\n') {
                        // This is a regular char. Go on if we either don't care for
                        // the width limit or have not reached that limit.
-                       curr += cell(0)[i].width_;
+                       curr += cell(0)[i]->width();
                        if (curr + safe <= mi.base.textwidth)
                                continue;
                }
@@ -187,8 +187,10 @@ void MathTextInset::draw(PainterInfo & pi, int x, int y) const
 }
 
 
+/*
 void MathTextInset::drawSelection(PainterInfo & pi,
                idx_type idx1, pos_type pos1, idx_type idx2, pos_type pos2) const
 {
        cache_.drawSelection(pi, idx1, pos1, idx2, pos2);
 }
+*/