diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index be0b5b2303..f586fa9cf8 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -51,6 +51,14 @@ namespace lyx { using support::bformat; +InsetCaption::InsetCaption(InsetCaption const & ic) + : InsetText(ic), textclass_(ic.textclass_) +{ + setAutoBreakRows(true); + setDrawFrame(true); + setFrameColor(Color::captionframe); +} + InsetCaption::InsetCaption(BufferParams const & bp) : InsetText(bp), textclass_(bp.getTextClass()) { diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 5659019e40..424417d9d9 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -23,6 +23,7 @@ namespace lyx { class InsetCaption : public InsetText { public: /// + InsetCaption(InsetCaption const &); InsetCaption(BufferParams const &); /// virtual ~InsetCaption() {}