}
-LyXFont Inset::ConvertFont(LyXFont font)
+LyXFont Inset::ConvertFont(LyXFont const & font) const
{
- return font;
+ return LyXFont(font);
}
return _("Opened inset");
}
+
+LyXText * Inset::getLyXText(BufferView * bv) const
+{
+ if (owner())
+ return owner()->getLyXText(bv);
+ else
+ return bv->text;
+}
+
+
/* some stuff for inset locking */
void UpdatableInset::InsetButtonPress(BufferView *, int x, int y, int button)
scx = 0;
- mx_scx = abs((width(bv->painter(), font) - bv->workWidth()) / 2);
+ mx_scx = abs((width(bv, font) - bv->workWidth()) / 2);
}