- button label has to be set before drawing (bug 4602).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23390
a592a061-630c-0410-9148-
cb99ea01b6c8
}
+void InsetWrap::draw(PainterInfo & pi, int x, int y) const
+{
+ const_cast<InsetWrap &>(*this).setLabel(
+ _("wrap: ") + floatName(params_.type, buffer().params()));
+ InsetCollapsable::draw(pi, x, y);
+}
+
+
void InsetWrap::validate(LaTeXFeatures & features) const
{
features.require("wrapfig");
///
void read(Lexer & lex);
///
+ void draw(PainterInfo & pi, int x, int y) const;
+ ///
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return WRAP_CODE; }