mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
a694476ac6
commit
6592d5f199
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user