Revision: 28735
          http://sourceforge.net/p/bibdesk/svn/28735
Author:   hofman
Date:     2024-02-13 14:57:39 +0000 (Tue, 13 Feb 2024)
Log Message:
-----------
create mutable copy rather than just mutable string

Modified Paths:
--------------
    trunk/bibdesk/NSString_BDSKExtensions.m

Modified: trunk/bibdesk/NSString_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSString_BDSKExtensions.m     2024-02-12 22:30:24 UTC (rev 
28734)
+++ trunk/bibdesk/NSString_BDSKExtensions.m     2024-02-13 14:57:39 UTC (rev 
28735)
@@ -1446,7 +1446,7 @@
     CFStringInitInlineBuffer((__bridge CFStringRef)self, &inlineBuffer, 
CFRangeMake(0, length));
     UniChar ch;
     
-#define DELETE_CHARACTERS(n) 
do{if(NULL==theString){theString=CFStringCreateMutable(NULL, (__bridge 
CFStringRef)self);};CFStringDelete(theString, CFRangeMake(delIdx, n));} while(0)
+#define DELETE_CHARACTERS(n) 
do{if(NULL==theString){theString=CFStringCreateMutableCopy(NULL, length, 
(__bridge CFStringRef)self);};CFStringDelete(theString, CFRangeMake(delIdx, 
n));} while(0)
     
     // idx is current index into the inline buffer, and delIdx is current 
index in the mutable string
     CFIndex idx = 0, delIdx = 0;

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

Reply via email to