Revision: 7293
http://skim-app.svn.sourceforge.net/skim-app/?rev=7293&view=rev
Author: hofman
Date: 2011-06-19 12:19:05 +0000 (Sun, 19 Jun 2011)
Log Message:
-----------
check pboard for string type before getting the value
Modified Paths:
--------------
trunk/SKMainWindowController_Actions.m
Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m 2011-06-19 12:00:14 UTC (rev
7292)
+++ trunk/SKMainWindowController_Actions.m 2011-06-19 12:19:05 UTC (rev
7293)
@@ -1044,7 +1044,9 @@
if ([[findController view] window]) {
[findController findWithOptions:findOptions];
} else {
- findString = [[NSPasteboard pasteboardWithName:NSFindPboard]
stringForType:NSStringPboardType];
+ NSPasteboard *findPboard = [NSPasteboard
pasteboardWithName:NSFindPboard];
+ if ([findPboard availableTypeFromArray:[NSArray
arrayWithObject:NSStringPboardType]])
+ findString = [findPboard stringForType:NSStringPboardType];
if ([[NSUserDefaults standardUserDefaults]
boolForKey:SKCaseInsensitiveFindKey])
findOptions |= NSCaseInsensitiveSearch;
if ([findString length] > 0)
@@ -1072,5 +1074,4 @@
}
}
-
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit