adium 3715:87cdda629188: Missed an index->anIndex.

commits at adium.im commits at adium.im
Tue Mar 8 19:08:06 UTC 2011


details:	http://hg.adium.im/adium/rev/87cdda629188
revision:	3715:87cdda629188
branch:		(none)
author:		Frank Dowsett <wixardy at adium.im>
date:		Tue Mar 08 14:04:45 2011 -0500

Missed an index->anIndex.
Subject: adium 3716:e1a35f6dcc06: Avoid a possible crash.

details:	http://hg.adium.im/adium/rev/e1a35f6dcc06
revision:	3716:e1a35f6dcc06
branch:		(none)
author:		Frank Dowsett <wixardy at adium.im>
date:		Tue Mar 08 14:04:51 2011 -0500

Avoid a possible crash.

diffs (35 lines):

diff -r a1a587581ccb -r e1a35f6dcc06 Frameworks/AIUtilities Framework/Source/AISegmentedControl.m
--- a/Frameworks/AIUtilities Framework/Source/AISegmentedControl.m	Tue Mar 08 12:10:44 2011 -0500
+++ b/Frameworks/AIUtilities Framework/Source/AISegmentedControl.m	Tue Mar 08 14:04:51 2011 -0500
@@ -17,6 +17,7 @@
 
 #import "AISegmentedControl.h"
 #import <AIUtilities/AIApplicationAdditions.h>
+#import <AIUtilities/AILeopardCompatibility.h>
 
 @interface NSSegmentedCell (ApplePrivate)
 - (void)setMenuIndicatorShown:(BOOL)shown forSegment:(NSInteger)segment;
diff -r a1a587581ccb -r e1a35f6dcc06 Plugins/Link Management/SHLinkEditorWindowController.m
--- a/Plugins/Link Management/SHLinkEditorWindowController.m	Tue Mar 08 12:10:44 2011 -0500
+++ b/Plugins/Link Management/SHLinkEditorWindowController.m	Tue Mar 08 14:04:51 2011 -0500
@@ -87,7 +87,7 @@
 	[label_linkText setLocalizedString:AILocalizedString(@"Link Text:","Label for the text entry area for the name when creating a link")];
 	[label_URL setLocalizedString:AILocalizedString(@"URL:",nil)];
 
-	if (textView) {
+	if (textView && [[textView textStorage] length] > 0) {
 		NSRange 	selectedRange = [textView selectedRange];
 		NSRange		rangeOfLinkAttribute;
 		NSString    *linkText;
diff -r a1a587581ccb -r e1a35f6dcc06 Source/AIContactListUserPictureMenuController.m
--- a/Source/AIContactListUserPictureMenuController.m	Tue Mar 08 12:10:44 2011 -0500
+++ b/Source/AIContactListUserPictureMenuController.m	Tue Mar 08 14:04:51 2011 -0500
@@ -252,7 +252,7 @@
 {
 	NSArray *recentPictures = [self recentPictures];
 	
-	if (index < [recentPictures count]) {
+	if (anIndex < [recentPictures count]) {
 		id recentPicture = [recentPictures objectAtIndex:anIndex];
 		NSData *imageData = nil;
 		




More information about the commits mailing list