]> 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 40650a530b2ecdf2d5dd5d0f63aa1f4f0f6e333d..0a8e903612aa1719fc3dc81f17cc6fe4a8ebcdea 100644 (file)
@@ -9,19 +9,21 @@
 
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "CutAndPaste.h"
 #include "BufferView.h"
 #include "buffer.h"
 #include "paragraph.h"
-#include "insets/inseterror.h"
 #include "lyx_gui_misc.h"
 #include "lyxcursor.h"
 #include "gettext.h"
 #include "iterators.h"
+#include "lyxtextclasslist.h"
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
+#include "insets/inseterror.h"
 
 using std::pair;
 using lyx::pos_type;
@@ -268,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()))