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
This commit is contained in:
Abdelrazak Younes 2007-04-30 15:17:16 +00:00
parent 2640b21228
commit 845feeabfc
2 changed files with 9 additions and 0 deletions

View File

@ -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())
{

View File

@ -23,6 +23,7 @@ namespace lyx {
class InsetCaption : public InsetText {
public:
///
InsetCaption(InsetCaption const &);
InsetCaption(BufferParams const &);
///
virtual ~InsetCaption() {}