Skip to content
This repository
Browse code

fix bug when bookmark without tag

git-svn-id: https://ichm.googlecode.com/svn/trunk@33 e1f60c0e-2a54-0410-99cd-d3f60e83567d
  • Loading branch information...
commit bdab9d9976b2abcfbe5d5d68792528c93a9f01e7 1 parent 405029f
iamawalrus authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 CHMBookmark.m
7 CHMBookmark.m
@@ -25,8 +25,11 @@ - (NSString*)tagsString
25 25 for (CHMTag * tag in self.tags) {
26 26 [str appendFormat:@"%@, ", tag.tag];
27 27 }
28   - NSRange range = {[str length] - 2, 2};
29   - [str deleteCharactersInRange:range];
  28 + if ([str length] > 2)
  29 + {
  30 + NSRange range = {[str length] - 2, 2};
  31 + [str deleteCharactersInRange:range];
  32 + }
30 33 return str;
31 34 }
32 35

0 comments on commit bdab9d9

Please sign in to comment.
Something went wrong with that request. Please try again.