Authored by Thomas Rasch

o Bugfix: Unclustered annotations may have vanished during clustering

@@ -85,7 +85,7 @@ @@ -85,7 +85,7 @@
85 [super setNeedsDisplay]; 85 [super setNeedsDisplay];
86 } 86 }
87 87
88 --(void)drawRect:(CGRect)rect 88 +- (void)drawRect:(CGRect)rect
89 { 89 {
90 CGRect bounds = self.bounds; 90 CGRect bounds = self.bounds;
91 91
@@ -446,7 +446,11 @@ @@ -446,7 +446,11 @@
446 446
447 if (enclosedAnnotationsCount < 2) 447 if (enclosedAnnotationsCount < 2)
448 { 448 {
449 - [someArray addObjectsFromArray:enclosedAnnotations]; 449 + @synchronized (annotations)
  450 + {
  451 + [someArray addObjectsFromArray:annotations];
  452 + }
  453 +
450 return; 454 return;
451 } 455 }
452 456