remove duplicated code (is already in constructor)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23466 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-03-04 22:48:40 +00:00
parent a694476ac6
commit 6592d5f199

View File

@ -194,13 +194,8 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
return new InsetTabular(buf, r, c);
}
case LFUN_CAPTION_INSERT: {
auto_ptr<InsetCaption> inset(new InsetCaption(buf));
inset->setAutoBreakRows(true);
inset->setDrawFrame(true);
inset->setFrameColor(Color_captionframe);
return inset.release();
}
case LFUN_CAPTION_INSERT:
return new InsetCaption(buf);
case LFUN_INDEX_PRINT:
return new InsetPrintIndex(InsetCommandParams(INDEX_PRINT_CODE));