mirror of https://github.com/aseprite/aseprite.git
Fix #470 - Crash when copy & paste a cel at its same position in the timeline
This commit is contained in:
parent
4f41a3bc2d
commit
62ef5c5830
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue