// this must be set before we enter InsetText::read()
setLayout(buffer().params());
-
InsetText::read(lex);
+ // set button label again as the inset contents was not read yet at
+ // setLayout() time.
+ setButtonLabel();
// Force default font, if so requested
// This avoids paragraphs in buffer language that would have a
}
-void InsetERT::draw(PainterInfo & pi, int x, int y) const
-{
- const_cast<InsetERT &>(*this).setButtonLabel();
- InsetCollapsable::draw(pi, x, y);
-}
-
-
bool InsetERT::showInsetDialog(BufferView * bv) const
{
bv->showDialog("ert", params2string(status()),
///
void validate(LaTeXFeatures &) const {}
///
- void draw(PainterInfo & pi, int x, int y) const;
- ///
bool showInsetDialog(BufferView *) const;
///
virtual bool forcePlainLayout(idx_type = 0) const { return true; }