Fix magic wand tool used in a transparent layer when cel origin=(0,0)

This commit is contained in:
David Capello 2021-04-22 15:46:07 -03:00
parent ecbd845aae
commit 8569cf449a

View File

@ -501,10 +501,8 @@ public:
m_frame,
gfx::Clip(m_sprite->bounds()));
}
else {
Cel* cel = m_layer->cel(m_frame);
if (cel && (cel->x() != 0 || cel->y() != 0))
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
else if (Cel* cel = m_layer->cel(m_frame)) {
m_floodfillSrcImage = render::rasterize_with_sprite_bounds(cel);
}
}