Commits

Tuk Bredsdorff committed 4be9b78

Don't fail just because the users chooses to cancel.

Comments (0)

Files changed (1)

 			if edges.nitems > 0
 				prompts = ["Width:", "Depth:"]
 				size = inputbox prompts, STRUT_SIZE, "Strut Dimensions"
-				
-				create_frame edges, center, size
-				print_strut_lengths
+				if size
+					create_frame edges, center, size
+					print_strut_lengths
+				end
 			else
 				UI.messagebox 'No edges in selection to build from.'
 			end