From f66e2e569eecbf10dd9a0c55b0a4b6418008dca4 Mon Sep 17 00:00:00 2001
From: Pietro Gagliardi <pietro10@mac.com>
Date: Mon, 3 Aug 2015 12:17:56 -0400
Subject: [PATCH] Fixed empty boxes.

---
 redo/osxaltest/box.m | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/redo/osxaltest/box.m b/redo/osxaltest/box.m
index c74ec794..470748d2 100644
--- a/redo/osxaltest/box.m
+++ b/redo/osxaltest/box.m
@@ -68,6 +68,9 @@
 	uintmax_t nStretchy;
 	NSLayoutConstraintOrientation orientation;
 
+	if ([self->children count] == 0)
+		goto selfOnly;
+
 	[self->v removeConstraints:[self->v constraints]];
 
 	orientation = NSLayoutConstraintOrientationHorizontal;
@@ -140,6 +143,7 @@ NSLog(@"%@", constraint);
 	[views release];
 
 	// and now populate for self
+selfOnly:
 	p->view = self->v;
 	p->attachLeft = YES;
 	p->attachTop = YES;