]> git.neil.brown.name Git - edlib.git/commit
tile: be extra careful when merging a tile into it's parent.
authorNeilBrown <neil@brown.name>
Fri, 16 Jun 2023 11:19:15 +0000 (21:19 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
commit4170c8d82fc7b922559ee2c7bb10d8da6318056a
treec90210a5ad654feb4b687df1969cb68a6a541ea8
parent3e50f74e3018fb91f5ce8a61e5ed970f75a22688
tile: be extra careful when merging a tile into it's parent.

When a parent tile gets down to just one child, the child is subsumed
into the parent.
This requires that the parent really is a tile pane.  As pane_reparent()
and change parantage, it is possible that it isn't.
So add extra checks before assuming the types of things.

Signed-off-by: NeilBrown <neil@brown.name>
lib-tile.c