// some kind of garbage collection there, or a shared_ptr, then this
// would not be needed.
static Buffer * buffer = theBufferList().newBuffer(
- FileName::tempName().absFilename() + "_clipboard.internal");
+ FileName::tempName().absFileName() + "_clipboard.internal");
buffer->setUnnamed(true);
buffer->paragraphs() = paragraphs;
buffer->inset().setBuffer(*buffer);
// deleted, unless the whole selection was deleted
if (!isFullyDeleted(copy_pars))
acceptChanges(copy_pars, buf.params());
+ else
+ rejectChanges(copy_pars, buf.params());
// do some final cleanup now, to make sure that the paragraphs
// create inset for graphic
InsetGraphics * inset = new InsetGraphics(cur.buffer());
InsetGraphicsParams params;
- params.filename = support::DocFileName(filename.absFilename());
+ params.filename = support::DocFileName(filename.absFileName());
inset->setParams(params);
cur.recordUndo();
cur.insert(inset);