Browse Source

Don't show a number for a count of 0 or 1.

preble 13 years ago
parent
commit
c7f86950f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      IJInventoryView.m

+ 1 - 1
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];