fix crash on saving scene with missing palette
This commit is contained in:
parent
9d28ccd141
commit
f7fe5cb9ee
1 changed files with 3 additions and 1 deletions
|
@ -407,7 +407,9 @@ void ScenePalette::rollbackPath() { m_pl->setPath(m_oldPath); }
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
bool ScenePalette::isDirty() { return m_pl->getPalette()->getDirtyFlag(); }
|
bool ScenePalette::isDirty() {
|
||||||
|
return m_pl->getPalette() && m_pl->getPalette()->getDirtyFlag();
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue