Skip to content

Commit

Permalink
Merge pull request #1 from cameronbriar/master
Browse files Browse the repository at this point in the history
Set bool deleteInput to YES for kButtonSubtract
  • Loading branch information
oscardelben committed Sep 30, 2011
2 parents 445b361 + bbb1879 commit b045153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iPhoneCalculator/CalculatorViewController.m
@@ -1,5 +1,4 @@


#import "CalculatorViewController.h"

@implementation CalculatorViewController
Expand Down Expand Up @@ -255,6 +254,7 @@ - (void)buttonPressed:(id)sender
break;
case kButtonSubtract:
[self performOperation:kButtonSubtract];
deleteInput = YES;
break;
case kButtonFour:
ADD_DIGIT(4);
Expand Down

0 comments on commit b045153

Please sign in to comment.