fix appendChildNode() call
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 23 Sep 2023 19:58:22 +0000 (20:58 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 23 Sep 2023 19:58:22 +0000 (20:58 +0100)
commit5b94c5133ba4dd358503ce313210b65053e1ad98
tree98a5f3041586bcf0dc178049086a05f2ad3342eb
parent5782cd089bbc9cbc47b7857b3648eb1a2b794648
fix appendChildNode() call

Origin: upstream, https://code.qt.io/cgit/qt/qtlocation.git/commit/?id=6cb20a08b65c73b4
Last-Update: 2023-08-18

The QSGNode::appendChildNode() method checks that its parameter must
not have a parent. Before this patch we always called appendChildNode()
on a node that already had parent, which was always leading to ASSERT
in a debug build.

Seems that the right approach would be to call this method, if the
node *does not* have a parent.

Gbp-Pq: Name fix_appendChildNode_call.diff
src/location/labs/qsg/qgeomapobjectqsgsupport.cpp