Revision: 12525
          http://sourceforge.net/p/skim-app/code/12525
Author:   hofman
Date:     2021-11-04 18:36:58 +0000 (Thu, 04 Nov 2021)
Log Message:
-----------
Set temporary objectValue rather than attributedStringValue

Modified Paths:
--------------
    trunk/SKStatusBar.m

Modified: trunk/SKStatusBar.m
===================================================================
--- trunk/SKStatusBar.m 2021-11-04 18:24:02 UTC (rev 12524)
+++ trunk/SKStatusBar.m 2021-11-04 18:36:58 UTC (rev 12525)
@@ -527,14 +527,14 @@
 
 - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
     if ([self isUnderlined]) {
-        NSAttributedString *attrString = [[self attributedStringValue] copy];
-        NSMutableAttributedString *mutAttrString = [attrString mutableCopy];
+        id objectValue = [[self objectValue] retain];
+        NSMutableAttributedString *mutAttrString = [[self 
attributedStringValue] mutableCopy];
         [mutAttrString addAttribute:NSUnderlineStyleAttributeName 
value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:NSMakeRange(0, 
[mutAttrString length])];
-        [self setAttributedStringValue:mutAttrString];
+        [self setObjectValue:mutAttrString];
         [mutAttrString release];
         [super drawInteriorWithFrame:cellFrame inView:controlView];
-        [self setAttributedStringValue:attrString];
-        [attrString release];
+        [self setObjectValue:objectValue];
+        [objectValue release];
     } else {
         [super drawInteriorWithFrame:cellFrame inView:controlView];
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to