mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
* 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:
parent
8e9dc9bd2a
commit
4398113ee9
@ -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");
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user