From 845feeabfca9d54c38eff9152d74320dfe8655eb Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 30 Apr 2007 15:17:16 +0000 Subject: [PATCH] Fix bug 3186? http://bugzilla.lyx.org/show_bug.cgi?id=3186 Caption outside float or long table will get the "Senseless!!" label. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18120 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCaption.cpp | 8 ++++++++ src/insets/InsetCaption.h | 1 + 2 files changed, 9 insertions(+) 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() {}