mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-03 23:41:56 +00:00
Merge pull request #656 from blackmiaool/fix_new_brush
Fix crash using NewBrush when Home tab is selected
This commit is contained in:
commit
9528cae9db
@ -64,6 +64,10 @@ bool NewBrushCommand::onEnabled(Context* context)
|
||||
|
||||
void NewBrushCommand::onExecute(Context* context)
|
||||
{
|
||||
ASSERT(current_editor);
|
||||
if (!current_editor)
|
||||
return;
|
||||
|
||||
// If there is no visible mask, the brush must be selected from the
|
||||
// current editor.
|
||||
if (!context->activeDocument()->isMaskVisible()) {
|
||||
|
Loading…
Reference in New Issue
Block a user