]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
the stuff from the sneak preview:
[lyx.git] / src / factory.C
index 11340acb54cd9e9e8f5518a40ecdf0c4835663c2..10e11708e806e6fbd9bf639ed50b796f87982865 100644 (file)
@@ -182,11 +182,9 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
                return 0;
 
        case LFUN_INSET_CAPTION: {
-               UpdatableInset * up = bv->cursor().inset()
-                       ? bv->cursor().inset()->asUpdatableInset() : 0;
+               UpdatableInset * up = bv->cursor().inset().asUpdatableInset();
                if (!up) {
                        auto_ptr<InsetCaption> inset(new InsetCaption(params));
-                       inset->setOwner(up);
                        inset->setAutoBreakRows(true);
                        inset->setDrawFrame(InsetText::LOCKED);
                        inset->setFrameColor(LColor::captionframe);