Remove assert that can fail in PixelsMovement::trim()

This commit is contained in:
David Capello 2016-11-07 12:43:15 -03:00
parent 40000a7e77
commit 6d6ec5710e

View File

@ -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()));