- return singleWidth(buffer, par, pos, par.getChar(pos),
+ return singleWidth(par, pos, par.getChar(pos),
pos_type pos, char_type c, LyXFont const & font) const
{
// The most common case is handled first (Asger)
pos_type pos, char_type c, LyXFont const & font) const
{
// The most common case is handled first (Asger)
FontMetrics const & fm = theFontMetrics(getLabelFont(buffer, par));
for ( ; i < end; ++i, ++fi) {
char_type const c = par.getChar(i);
FontMetrics const & fm = theFontMetrics(getLabelFont(buffer, par));
for ( ; i < end; ++i, ++fi) {
char_type const c = par.getChar(i);
- int thiswidth = singleWidth(buffer, par, i, c, *fi);
+ int thiswidth = singleWidth(par, i, c, *fi);
w = max(w, labelEnd(buffer, pit));
}
char_type const c = par.getChar(i);
w = max(w, labelEnd(buffer, pit));
}
char_type const c = par.getChar(i);
- w += singleWidth(buffer, par, i, c, *fi);
+ w += singleWidth(par, i, c, *fi);
- x += singleWidth(buffer, par, pos, par.getChar(pos), font);
+ x += singleWidth(par, pos, par.getChar(pos), font);
if (par.hfillExpansion(row, pos))
x += (pos >= body_pos) ? m.hfill : m.label_hfill;
if (par.hfillExpansion(row, pos))
x += (pos >= body_pos) ? m.hfill : m.label_hfill;