The fact that the bug was still present in the features/str-metrics
branch comes from a goof in the initial implementation of 'virtual'
row elements (completion and end-of-par markers). Now that this is
corrected, everything works as it should.
The fact that the bug is present in master is due to some other reason
that is not useful to investigate now.
Element e(STRING, pos, f, ch);
elements_.push_back(e);
}
- //lyxerr << "FONT " <<back().font.language() << endl;
back().str += c;
back().endpos = pos + 1;
}
finalizeLast();
Element e(VIRTUAL, pos, f, ch);
e.str = s;
- // A completion has no size
+ e.dim.wid = theFontMetrics(f).width(s);
+ dim_.wid += e.dim.wid;
e.endpos = pos;
elements_.push_back(e);
finalizeLast();