]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
frontends fixes from Juergen S
[lyx.git] / src / CutAndPaste.C
index ab1915f96da801e4f01a0bf5c7deb3dd7ed22c43..df12c4de8d81a241a7044b0a11df46c232bb1ba8 100644 (file)
@@ -92,8 +92,10 @@ bool CutAndPaste::cutSelection(Paragraph * startpar, Paragraph ** endpar,
        
        if (!(*endpar) || startpar == (*endpar)) {
                // only within one paragraph
-               if (realcut)
+               if (realcut) {
                        buf = new Paragraph;
+                       buf->layout(startpar->layout());
+               }
                pos_type i = start;
                if (end > startpar->size())
                        end = startpar->size();