Diffusion Krita 94a83a77a472

Fix assert on Node::parentNode() for root

Authored by tymond on Apr 20 2020, 1:07 AM.

Description

Fix assert on Node::parentNode() for root

Before this commit, because of both parentNode() not checking
for parent() existing and createNode() not checking for the node
existing (which in this case was originalNode->parent()),
trying to access parentNode() of root node would result in an assert
or crash.
This commit fixes that behaviour in both places.

BUG:420317

(cherry picked from commit 2a391d814b0a46624bd8ddd6b29ae1498397187c)

Details

Committed
tymondApr 20 2020, 1:14 AM
Parents
R37:4a37f35f9a5c: Fix colorize mask for more than 16 colors
Branches
Unknown
Tags
Unknown
References
refs/keep-around/94a83a77a4723771b9b8030a60fbd38ef209b7c8