MaskByColorCommand needs an active image to be executed (fix #627)

This commit is contained in:
David Capello 2015-04-16 12:55:39 -03:00
parent 849e40b0f9
commit a4bf93e4d5

View File

@ -67,7 +67,8 @@ MaskByColorCommand::MaskByColorCommand()
bool MaskByColorCommand::onEnabled(Context* context)
{
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
ContextFlags::HasActiveSprite);
ContextFlags::HasActiveSprite |
ContextFlags::HasActiveImage);
}
void MaskByColorCommand::onExecute(Context* context)