From c7f86950f749c312d5866c57935a51cd83cfca7b Mon Sep 17 00:00:00 2001 From: preble Date: Sun, 10 Oct 2010 16:37:00 -0400 Subject: [PATCH] Don't show a number for a count of 0 or 1. --- IJInventoryView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IJInventoryView.m b/IJInventoryView.m index 91c994b..c714adf 100644 --- a/IJInventoryView.m +++ b/IJInventoryView.m @@ -139,7 +139,7 @@ const static CGFloat cellOffset = 40; imageLayer.contents = item.image; CATextLayer *textLayer = [layer.sublayers objectAtIndex:1]; - if (item.count == 0) + if (item.count <= 1) // for 1 and 0, show no number. textLayer.string = @""; else textLayer.string = [NSString stringWithFormat:@"%d", item.count];