]> git.lyx.org Git - features.git/commitdiff
* CutAndPaste.C (cutSelection): another layout settings forgotten.
authorJürgen Vigna <jug@sad.it>
Thu, 7 Mar 2002 10:22:42 +0000 (10:22 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 7 Mar 2002 10:22:42 +0000 (10:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3684 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/CutAndPaste.C

index f31f2738697d0f2493fc2318e9e7b9571c59f105..1f0d28144dce0f9ae691ddf2978369c9a5e7d0a3 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-07  Juergen Vigna  <jug@sad.it>
+
+       * CutAndPaste.C (cutSelection): another layout settings forgotten.
+
 2002-03-07  Lars Gullik Bjønnes  <larsbj@birdstep.com>
 
        * paragraph.C (breakParagraph): use default layout not layout of
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();