Commit 846c4ba6 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fixed loading of images having global selection saved as a mask

We need to activate first KisLayer, but not anything else during loading
parent a2e32e96
......@@ -664,8 +664,14 @@ void KisView2::slotLoadingFinished()
if (KisNodeSP node = image()->rootLayer()->firstChild()) {
KisNodeSP activeNode = image()->rootLayer()->firstChild();
while(activeNode && !activeNode->inherits("KisLayer")) {
activeNode = activeNode->nextSibling();
if (activeNode) {
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