]> git.lyx.org Git - features.git/commitdiff
fix bug 171 (pasting of floats in floats)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Jan 2002 23:48:36 +0000 (23:48 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 16 Jan 2002 23:48:36 +0000 (23:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3399 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/CutAndPaste.C

index cbac35bb127142ddc5623bf3ad9ca207a65f7524..d85e95513044c79ff4ce2805cc0a081a05cb19a0 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-17  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * CutAndPaste.C (pasteSelection): when pasting multiple paragraph,
+       make sure to set their inset_owner to the right value (bug #171)
+
 2001-12-12  Ben Stanley  <bds02@uow.edu.au>
 
        * DepTable.h 
index da7a4ae9bd2a05b49eec365185033b6ef72085be..395e860419e39b2a07e6c6c063f3a06961de70bf 100644 (file)
@@ -286,6 +286,8 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
                                        }
                                }
                        }
+                       // set the inset owner of this paragraph
+                       tmpbuf->setInsetOwner((*par)->inInset());
                        tmpbuf = tmpbuf->next();
                }