Commit ffca97cc authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fixed a really weird crash when working with multiple documents

When switching documents KisNodeModel::m_d::parentOfRemovedNode was
still pointing to an old (probably removed node dummy), which
obviously caused a crash on the next layer selection

parent c3acfb83
......@@ -252,6 +252,7 @@ void KisNodeModel::setDummiesFacade(KisDummiesFacadeBase *dummiesFacade, KisImag
m_d->image = image;
m_d->dummiesFacade = dummiesFacade;
m_d->parentOfRemovedNode = 0;
if(m_d->dummiesFacade) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment