billiob pushed a commit to branch master.
commit eea7862f5229e211e4d1a30f20e9b01a563ed9de
Author: Boris Faure <[email protected]>
Date: Wed Aug 28 17:30:06 2013 +0200
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 92d6910..1dc85a7 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);
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk