From: André Pönitz Date: Tue, 4 Mar 2008 22:48:40 +0000 (+0000) Subject: remove duplicated code (is already in constructor) X-Git-Tag: 1.6.10~5878 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6592d5f199f7e5de78da242052ae20d757132e0a;p=features.git remove duplicated code (is already in constructor) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23466 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/factory.cpp b/src/factory.cpp index 300345d913..93e359323f 100644 --- a/src/factory.cpp +++ b/src/factory.cpp @@ -194,13 +194,8 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd) return new InsetTabular(buf, r, c); } - case LFUN_CAPTION_INSERT: { - auto_ptr 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));