Permalink
Browse files

Hopefully THIS ONE doesn't crash

  • Loading branch information...
1 parent dc5a2c9 commit a3792b0d7154825f23cb854a41a7f56b522413e4 @paulaj paulaj committed Jun 8, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 Classes/WhiteboardView.m
View
@@ -189,11 +189,11 @@ -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
}
}
if(isErasing){
- CGPoint point1=[[[[event allTouches] allObjects] objectAtIndex:0] locationInView:self];
- CGPoint point2=[[[[event allTouches] allObjects] objectAtIndex:1] locationInView:self];
- location= CGPointMake((((point2.x) + (point1.x))/2.0), (((point2.y) + (point1.y))/2.0));
- [[[strokes lastObject] lastObject] addObject:[NSNumber numberWithFloat: location.x]];
- [[[strokes lastObject] lastObject] addObject:[NSNumber numberWithFloat: location.y]];
+ //CGPoint point1=[[[[event allTouches] allObjects] objectAtIndex:0] locationInView:self];
+ //CGPoint point2=[[[[event allTouches] allObjects] objectAtIndex:1] locationInView:self];
+ //location= CGPointMake((((point2.x) + (point1.x))/2.0), (((point2.y) + (point1.y))/2.0));
+ //[[[strokes lastObject] lastObject] addObject:[NSNumber numberWithFloat: location.x]];
+ //[[[strokes lastObject] lastObject] addObject:[NSNumber numberWithFloat: location.y]];
}
[self setNeedsDisplay];

0 comments on commit a3792b0

Please sign in to comment.