mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Remove assert that can fail in PixelsMovement::trim()
This commit is contained in:
parent
40000a7e77
commit
6d6ec5710e
@ -177,7 +177,8 @@ void PixelsMovement::trim()
|
||||
{
|
||||
ContextWriter writer(m_reader, 1000);
|
||||
|
||||
ASSERT(writer.cel());
|
||||
// writer.cel() can be nullptr when we paste in an empty cel
|
||||
// (Ctrl+V) and cut (Ctrl+X) the floating pixels.
|
||||
if (writer.cel() &&
|
||||
writer.cel()->layer()->isTransparent())
|
||||
m_transaction.execute(new cmd::TrimCel(writer.cel()));
|
||||
|
Loading…
Reference in New Issue
Block a user