X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetert.C;h=795ca2c042dc54fcc1bba3c0fe4e049364f9b779;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=bbbd43edc2f514a542183a0b877d6c35078c4a80;hpb=e97f3d1b3146f8ee10f8542d65c09620826dac84;p=lyx.git diff --git a/src/insets/insetert.C b/src/insets/insetert.C index bbbd43edc2..795ca2c042 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -36,6 +36,7 @@ InsetERT::InsetERT(Buffer * bf) labelfont.setColor(LColor::ert); setLabelFont(labelfont); setAutoCollapse(false); + setInsetName("ERT"); } @@ -43,14 +44,9 @@ Inset * InsetERT::Clone() const { InsetERT * result = new InsetERT(buffer); result->init(buffer, this); - return result; -} - -void InsetERT::Write(ostream & os) const -{ - os << "ERT\n"; - WriteParagraphData(os); + result->collapsed = collapsed; + return result; }