summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-28 17:11:48 +0200
committerBoris Faure <billiob@gmail.com>2013-08-28 17:11:48 +0200
commit441f2ef39e7f9912cfa1002e84e7d809368c5a0c (patch)
treeb814bbf01500f6f948c1d238b1bf502d889efbb3
parent6be10294133d89530d21c9160a9ecc2886c42da1 (diff)
fix crash when closing top-level split. Closes T256.
-rw-r--r--src/bin/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index c0e11d1..92d6910 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -493,6 +493,8 @@ _split_merge(Split *spp, Split *sp, const char *slot)
493 spp->s2->parent = spp; 493 spp->s2->parent = spp;
494 spp->horizontal = sp->horizontal; 494 spp->horizontal = sp->horizontal;
495 o = sp->panes; 495 o = sp->panes;
496 elm_object_part_content_unset(sp->parent->panes,
497 (strcmp(slot, PANES_TOP)) ? PANES_TOP : PANES_BOTTOM);
496 if (spp->parent) 498 if (spp->parent)
497 { 499 {
498 elm_object_part_content_unset(spp->parent->panes, slot); 500 elm_object_part_content_unset(spp->parent->panes, slot);