Revision: 29352
http://sourceforge.net/p/bibdesk/svn/29352
Author: hofman
Date: 2025-07-24 15:16:48 +0000 (Thu, 24 Jul 2025)
Log Message:
-----------
need to check character before range
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-07-24 14:48:48 UTC (rev 29351)
+++ trunk/bibdesk/BibDocument_UI.m 2025-07-24 15:16:48 UTC (rev 29352)
@@ -1481,7 +1481,7 @@
if (nil != value) {
NSRange range = [value rangeOfString:oldKey
options:NSCaseInsensitiveSearch];
if (range.location != NSNotFound &&
- (range.location == 0 || [invalidSet
characterIsMember:[value characterAtIndex:range.location]]) &&
+ (range.location == 0 || [invalidSet
characterIsMember:[value characterAtIndex:range.location - 1]]) &&
(NSMaxRange(range) == [value length] ||
[invalidSet characterIsMember:[value characterAtIndex:NSMaxRange(range)]])) {
NSMutableString *tmpString = [value mutableCopy];
[tmpString replaceCharactersInRange:range
withString:key];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit