diff options
author | stuconnolly <stuart02@gmail.com> | 2011-04-24 10:56:52 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-04-24 10:56:52 +0000 |
commit | 160728cd29519794b47b3a09b139ce9d604883f0 (patch) | |
tree | 395b0d792f2ccfb34946d7bf6317fdca2e4497e0 /Source/SPFieldEditorController.m | |
parent | 4611475c5b255eed9202474dd3bdee147e932946 (diff) | |
download | sequelpro-160728cd29519794b47b3a09b139ce9d604883f0.tar.gz sequelpro-160728cd29519794b47b3a09b139ce9d604883f0.tar.bz2 sequelpro-160728cd29519794b47b3a09b139ce9d604883f0.zip |
Fix broken build after merge with trunk.
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r-- | Source/SPFieldEditorController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m index 52a90fcd..bf48ec80 100644 --- a/Source/SPFieldEditorController.m +++ b/Source/SPFieldEditorController.m @@ -571,7 +571,7 @@ // and suppress closing the sheet if(sender == editSheetOkButton) { if (maxTextLength > 0 && [[editTextView textStorage] length] > maxTextLength && ![[[editTextView textStorage] string] isEqualToString:[prefs objectForKey:SPNullValue]]) { - [editTextView setSelectedRange:NSMakeRange(maxTextLength, [[editTextView textStorage] length] - maxTextLength)]; + [editTextView setSelectedRange:NSMakeRange((NSUInteger)maxTextLength, [[editTextView textStorage] length] - (NSUInteger)maxTextLength)]; [editTextView scrollRangeToVisible:NSMakeRange([editTextView selectedRange].location,0)]; [SPTooltip showWithObject:[NSString stringWithFormat:NSLocalizedString(@"Text is too long. Maximum text length is set to %llu.", @"Text is too long. Maximum text length is set to %llu."), maxTextLength]]; return; |