From eea7862f5229e211e4d1a30f20e9b01a563ed9de Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Wed, 28 Aug 2013 17:30:06 +0200 Subject: [PATCH] doc + use !strcmp to make code more readable --- src/bin/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/main.c b/src/bin/main.c index 92d69103..1dc85a78 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -493,8 +493,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, - (strcmp(slot, PANES_TOP)) ? PANES_TOP : PANES_BOTTOM); + (!strcmp(slot, PANES_TOP)) ? PANES_BOTTOM : PANES_TOP); if (spp->parent) { elm_object_part_content_unset(spp->parent->panes, slot);