fix segv when closing terms in splits

This commit is contained in:
Boris Faure 2013-09-21 17:20:19 +02:00
parent 6430b0c494
commit ac76c0fae2
1 changed files with 3 additions and 3 deletions

View File

@ -531,10 +531,10 @@ _split_merge(Split *spp, Split *sp, const char *slot)
spp->s2->parent = spp;
spp->horizontal = sp->horizontal;
o = sp->panes;
/* slot is the empty part. the part that needs to be unset is the
* other one */
elm_object_part_content_unset(sp->parent->panes, slot);
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)
{
elm_object_part_content_unset(spp->parent->panes, slot);