]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
FileName::isDirWritable(): make is safer.
[lyx.git] / src / CutAndPaste.cpp
index ee639f3c6c27ad95feb43329e7515a68546e3a06..64718ae12638fbe63b1eafd658694eb81e36c344 100644 (file)
@@ -124,6 +124,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
                                        breakParagraphConservative(
                                                        buffer.params(),
                                                        insertion, i, j);
+                                       break;
                                }
                        }
                }
@@ -367,7 +368,7 @@ void putClipboard(ParagraphList const & paragraphs,
        // some kind of garbage collection there, or a shared_ptr, then this
        // would not be needed.
        static Buffer * buffer = theBufferList().newBuffer(
-               FileName::tempName().absFilename());
+               FileName::tempName().absFilename() + "_clipboard.internal");
        buffer->setUnnamed(true);
        buffer->paragraphs() = paragraphs;
        buffer->params().setDocumentClass(docclass);