Permalink
Browse files

Don't support creating notes backwards

  • Loading branch information...
1 parent 1d6c9e5 commit 483c5ea14584a50b9c885cb3af0d305ffa813b94 @mattrajca committed Jun 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/MRPianoRollView.m
@@ -211,7 +211,7 @@ - (void)mouseDragged:(NSEvent *)theEvent {
CGFloat x = [self convertPoint:[theEvent locationInWindow] fromView:nil].x;
_drawingNotePlaceholder = YES;
- _notePlaceholderRect.size.width = x - NSMinX(_notePlaceholderRect);
+ _notePlaceholderRect.size.width = MAX(x - NSMinX(_notePlaceholderRect), 5);
[self setNeedsDisplay:YES];
}

0 comments on commit 483c5ea

Please sign in to comment.