mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-17 13:20:45 +00:00
Fix error using filters when the selection is outside the canvas and is hidden/deselected (fix #1737)
This commit is contained in:
parent
0f51467768
commit
31dcd3272a
@ -427,7 +427,9 @@ doc::PalettePicks FilterManagerImpl::getPalettePicks()
|
||||
void FilterManagerImpl::init(Cel* cel)
|
||||
{
|
||||
ASSERT(cel);
|
||||
if (!updateBounds(static_cast<app::Document*>(m_site.document())->mask()))
|
||||
|
||||
Document* doc = static_cast<app::Document*>(m_site.document());
|
||||
if (!updateBounds(doc->isMaskVisible() ? doc->mask(): nullptr))
|
||||
throw InvalidAreaException();
|
||||
|
||||
m_cel = cel;
|
||||
|
@ -44,7 +44,7 @@ namespace app {
|
||||
class InvalidAreaException : public base::Exception {
|
||||
public:
|
||||
InvalidAreaException() throw()
|
||||
: base::Exception("The current mask/area to apply the effect is completely invalid.") { }
|
||||
: base::Exception("The active selection to apply the effect is out of the canvas.") { }
|
||||
};
|
||||
|
||||
class NoImageException : public base::Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user