mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26930 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2c88b65ad8
commit
7ec4207371
@ -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
|
||||
|
@ -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()),
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user