Grapher: Always reset colors at start of graphing

This commit is contained in:
Pieter de Bie
2008-10-03 18:27:12 +02:00
parent 49631753a8
commit a66ae7c1e7
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@
refs = repo.refs;
repository = repo;
previousLanes = [NSMutableArray array];
[PBGitLane resetColors];
return self;
}
+2
View File
@@ -15,6 +15,8 @@
- (id) initWithCommit: (NSString*) c;
- (BOOL) isCommit: (NSString*) c;
+ (void) resetColors;
@property(assign) NSString* sha;
@property(readonly) int index;
+6
View File
@@ -14,6 +14,12 @@
static int PBGITLANE_CURRENT_INDEX = 0;
@synthesize sha, index;
+ (void) resetColors
{
PBGITLANE_CURRENT_INDEX = 0;
}
- (id) initWithCommit: (NSString*) c
{
index = PBGITLANE_CURRENT_INDEX++;