mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 03:44:16 +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)
|
void StatusBar::showSnapToGridWarning(bool state)
|
||||||
{
|
{
|
||||||
if (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)
|
if (!m_doc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user