mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix Set Ink Type command crash when it is executed without UI
This commit is contained in:
parent
66ccf51eb9
commit
558943ebec
@ -65,9 +65,8 @@ bool SetInkTypeCommand::onChecked(Context* context)
|
||||
|
||||
void SetInkTypeCommand::onExecute(Context* context)
|
||||
{
|
||||
App::instance()
|
||||
->contextBar()
|
||||
->setInkType(m_type);
|
||||
if (App::instance()->contextBar() != nullptr)
|
||||
App::instance()->contextBar()->setInkType(m_type);
|
||||
}
|
||||
|
||||
std::string SetInkTypeCommand::onGetFriendlyName() const
|
||||
|
Loading…
Reference in New Issue
Block a user