]> git.lyx.org Git - features.git/commitdiff
remove duplicated code (is already in constructor)
authorAndré Pönitz <poenitz@gmx.net>
Tue, 4 Mar 2008 22:48:40 +0000 (22:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 4 Mar 2008 22:48:40 +0000 (22:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23466 a592a061-630c-0410-9148-cb99ea01b6c8

src/factory.cpp

index 300345d913a3165521ecb760585b6d33dfcfeb89..93e359323fee6ac03e69db7d0d1ada328ca58557 100644 (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));