From 49ace2b493e98ab306a4f4c9c3f2867636e61754 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 25 Jun 2020 19:58:52 -0300 Subject: [PATCH] Add missing layer to shrink bounds in tilemaps --- src/app/util/expand_cel_canvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/util/expand_cel_canvas.cpp b/src/app/util/expand_cel_canvas.cpp index de063c967..0c05cd2bf 100644 --- a/src/app/util/expand_cel_canvas.cpp +++ b/src/app/util/expand_cel_canvas.cpp @@ -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; } }