fix segv when closing terms in splits
This commit is contained in:
parent
6430b0c494
commit
ac76c0fae2
|
@ -531,10 +531,10 @@ _split_merge(Split *spp, Split *sp, const char *slot)
|
||||||
spp->s2->parent = spp;
|
spp->s2->parent = spp;
|
||||||
spp->horizontal = sp->horizontal;
|
spp->horizontal = sp->horizontal;
|
||||||
o = sp->panes;
|
o = sp->panes;
|
||||||
/* slot is the empty part. the part that needs to be unset is the
|
elm_object_part_content_unset(sp->parent->panes, slot);
|
||||||
* other one */
|
|
||||||
elm_object_part_content_unset(sp->parent->panes,
|
elm_object_part_content_unset(sp->parent->panes,
|
||||||
(!strcmp(slot, PANES_TOP)) ? PANES_BOTTOM : PANES_TOP);
|
(!strcmp(slot, PANES_TOP)) ?
|
||||||
|
PANES_BOTTOM : PANES_TOP);
|
||||||
if (spp->parent)
|
if (spp->parent)
|
||||||
{
|
{
|
||||||
elm_object_part_content_unset(spp->parent->panes, slot);
|
elm_object_part_content_unset(spp->parent->panes, slot);
|
||||||
|
|
Loading…
Reference in New Issue