mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +00:00
Fix crash copying & pasting empty layers between documents
This commit is contained in:
parent
daa7adde14
commit
76919072e0
@ -390,7 +390,7 @@ void clipboard::paste()
|
||||
i <= srcRange.layerEnd() &&
|
||||
i < LayerIndex(srcLayers.size()); ++i) {
|
||||
Cel* lastCel = static_cast<LayerImage*>(srcLayers[i])->getLastCel();
|
||||
if (maxFrame < lastCel->frame())
|
||||
if (lastCel && maxFrame < lastCel->frame())
|
||||
maxFrame = lastCel->frame();
|
||||
}
|
||||
if (dstSpr->totalFrames() < maxFrame.next())
|
||||
|
Loading…
x
Reference in New Issue
Block a user