* src/insets/InsetWrap.{cpp,h}:

- 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
This commit is contained in:
Jürgen Spitzmüller 2008-03-02 16:34:17 +00:00
parent 8e9dc9bd2a
commit 4398113ee9
2 changed files with 10 additions and 0 deletions

View File

@ -192,6 +192,14 @@ void InsetWrap::read(Lexer & lex)
}
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");

View File

@ -53,6 +53,8 @@ public:
///
void read(Lexer & lex);
///
void draw(PainterInfo & pi, int x, int y) const;
///
void validate(LaTeXFeatures & features) const;
///
InsetCode lyxCode() const { return WRAP_CODE; }