summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-09-21 17:20:19 +0200
committerBoris Faure <billiob@gmail.com>2013-09-21 17:20:19 +0200
commitac76c0fae2dd85af3c84ce82240374c10f7b5f56 (patch)
tree8c4d7df225f42b75ea118f74eace7db977705054
parent6430b0c494009bf421b97f0293838836f4fbfe18 (diff)
fix segv when closing terms in splits
-rw-r--r--src/bin/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index b530cdf..5e3fa02 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -531,10 +531,10 @@ _split_merge(Split *spp, Split *sp, const char *slot)
531 spp->s2->parent = spp; 531 spp->s2->parent = spp;
532 spp->horizontal = sp->horizontal; 532 spp->horizontal = sp->horizontal;
533 o = sp->panes; 533 o = sp->panes;
534 /* slot is the empty part. the part that needs to be unset is the 534 elm_object_part_content_unset(sp->parent->panes, slot);
535 * other one */
536 elm_object_part_content_unset(sp->parent->panes, 535 elm_object_part_content_unset(sp->parent->panes,
537 (!strcmp(slot, PANES_TOP)) ? PANES_BOTTOM : PANES_TOP); 536 (!strcmp(slot, PANES_TOP)) ?
537 PANES_BOTTOM : PANES_TOP);
538 if (spp->parent) 538 if (spp->parent)
539 { 539 {
540 elm_object_part_content_unset(spp->parent->panes, slot); 540 elm_object_part_content_unset(spp->parent->panes, slot);