]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
Change the latex font names in order to match the names of type1inst.
[lyx.git] / src / CutAndPaste.C
index 395e860419e39b2a07e6c6c063f3a06961de70bf..0a8e903612aa1719fc3dc81f17cc6fe4a8ebcdea 100644 (file)
@@ -270,6 +270,8 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
                // new environment and set also another font if that is required
                tmpbuf = buf;
                while(tmpbuf) {
+                       // set the inset owner of this paragraph
+                       tmpbuf->setInsetOwner((*par)->inInset());
                        for(pos_type i = 0; i < tmpbuf->size(); ++i) {
                                if (tmpbuf->getChar(i) == Paragraph::META_INSET) {
                                        if (!(*par)->insetAllowed(tmpbuf->getInset(i)->lyxCode()))
@@ -286,8 +288,6 @@ bool CutAndPaste::pasteSelection(Paragraph ** par, Paragraph ** endpar,
                                        }
                                }
                        }
-                       // set the inset owner of this paragraph
-                       tmpbuf->setInsetOwner((*par)->inInset());
                        tmpbuf = tmpbuf->next();
                }