]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Natbib authoryear uses (Ref1; Ref2) by default.
[lyx.git] / src / CutAndPaste.cpp
index 50e2f8f7a8aaffe7bcae861999d2eb60995ad09d..1f4633008774d4a66f043b933d9cc7fc8cb5b1c8 100644 (file)
@@ -530,6 +530,8 @@ void putClipboard(ParagraphList const & paragraphs,
                // XHTML format
                odocstringstream oshtml;
                OutputParams runparams(encodings.fromLyXName("utf8"));
+               // We do not need to produce images, etc.
+               runparams.dryrun = true;
                buffer->writeLyXHTMLSource(oshtml, runparams, Buffer::FullSource);
 
                theClipboard().put(lyx, oshtml.str(), plaintext);
@@ -1040,8 +1042,7 @@ void pasteParagraphList(Cursor & cur, ParagraphList const & parlist,
 
                PasteReturnValue prv =
                        pasteSelectionHelper(cur, parlist, docclass, 0, errorList);
-               if (prv.needupdate)
-                       cur.forceBufferUpdate();
+               cur.forceBufferUpdate();
                cur.clearSelection();
                text->setCursor(cur, prv.par, prv.pos);
        }