Fix #470 - Crash when copy & paste a cel at its same position in the timeline

This commit is contained in:
David Capello 2014-08-31 14:24:29 -03:00
parent 4f41a3bc2d
commit 62ef5c5830
1 changed files with 4 additions and 0 deletions

View File

@ -307,6 +307,10 @@ void clipboard::paste()
switch (srcRange.type()) {
case DocumentRange::kCels: {
// Do nothing case: pasting in the same document.
if (srcDoc == dstDoc)
return;
UndoTransaction undoTransaction(UIContext::instance(), "Paste Cels");
FrameNumber dstFrame = editor->frame();