- int width, ascent, descent;
- string s = getScreenLabel();
-
- if (Editable()) {
- pain.buttonText(0, 0, s, font,
- false, width, ascent, descent);
+ int width;
+ int ascent;
+ int descent;
+ string const s = getScreenLabel(bv->buffer());
+
+ if (editable()) {
+ lyxfont::buttonText(s, font, width, ascent, descent);