]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
Added copy constructor to inset.h and used it in most insets which permit
[features.git] / src / insets / insettext.C
index 29c8cba48d37626d616503b1ce013574ceee49e3..ed602b9b25450ff7f5f759ba20fe213ee67c3677 100644 (file)
@@ -153,15 +153,16 @@ void InsetText::init(InsetText const * ins, bool same_id)
        autoBreakRows = false;
        drawFrame_ = NEVER;
        xpos = 0.0;
+       frame_color = LColor::insetframe;
        if (ins) {
                setParagraphData(ins->par);
                autoBreakRows = ins->autoBreakRows;
                drawFrame_ = ins->drawFrame_;
+               frame_color = ins->frame_color;
                if (same_id)
                        id_ = ins->id_;
        }
        par->setInsetOwner(this);
-       frame_color = LColor::insetframe;
        locked = false;
        old_par = 0;
        last_drawn_width = -1;
@@ -204,8 +205,7 @@ void InsetText::clear()
 
 Inset * InsetText::clone(Buffer const &, bool same_id) const
 {
-       InsetText * t = new InsetText(*this, same_id);
-       return t;
+       return  new InsetText(*this, same_id);
 }