Add missing layer to shrink bounds in tilemaps

This commit is contained in:
David Capello 2020-06-25 19:58:52 -03:00
parent d0ab7d720c
commit 49ace2b493

View File

@ -542,7 +542,7 @@ gfx::Rect ExpandCelCanvas::getTrimDstImageBounds() const
else {
gfx::Rect bounds;
algorithm::shrink_bounds(m_dstImage.get(),
m_dstImage->maskColor(), nullptr, bounds);
m_dstImage->maskColor(), m_layer, bounds);
return bounds;
}
}