]> git.lyx.org Git - features.git/blobdiff - src/CutAndPaste.cpp
InsetText: remove InsetText default ctor and make text_ member private.
[features.git] / src / CutAndPaste.cpp
index e878e30c1f4bd647bbe0c6411dabf06ba8f2faa0..ba82e9439f9bd2729debd796e752320b8b0eb44d 100644 (file)
@@ -154,8 +154,9 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                }
        }
 
+       InsetText in(buffer);
        // Make sure there is no class difference.
-       InsetText in;
+       in.paragraphs().clear();
        // This works without copying any paragraph data because we have
        // a specialized swap method for ParagraphList. This is important
        // since we store pointers to insets at some places and we don't