mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-30 13:20:28 +00:00
Fix assert() when using snap to grid without documents
This commit is contained in:
parent
b0df5ac3f4
commit
a29503aef9
@ -682,7 +682,8 @@ void StatusBar::showTool(int msecs, tools::Tool* tool)
|
||||
void StatusBar::showSnapToGridWarning(bool state)
|
||||
{
|
||||
if (state) {
|
||||
ASSERT(m_doc);
|
||||
// m_doc can be null if "snap to grid" command is pressed without
|
||||
// an opened document. (E.g. to change the default setting)
|
||||
if (!m_doc)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user