git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26930 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-10-17 04:35:08 +00:00
parent 2c88b65ad8
commit 7ec4207371
3 changed files with 3 additions and 10 deletions

View File

@ -170,8 +170,10 @@ void InsetCollapsable::read(Lexer & lex)
// 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

View File

@ -175,13 +175,6 @@ bool InsetERT::insetAllowed(InsetCode /* code */) const
}
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()),

View File

@ -59,8 +59,6 @@ private:
///
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; }