Revision: 28207
          http://sourceforge.net/p/bibdesk/svn/28207
Author:   hofman
Date:     2023-04-06 15:47:20 +0000 (Thu, 06 Apr 2023)
Log Message:
-----------
make sure font of group table parent is updated when table font changes

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

Modified: trunk/bibdesk/BDSKGroupParentCell.m
===================================================================
--- trunk/bibdesk/BDSKGroupParentCell.m 2023-04-06 12:28:53 UTC (rev 28206)
+++ trunk/bibdesk/BDSKGroupParentCell.m 2023-04-06 15:47:20 UTC (rev 28207)
@@ -52,4 +52,16 @@
     [super setObjectValue:objectValue];
 }
 
+- (void)setFont:(NSFont *)font {
+    [super setFont:font];
+    id objectValue = [self objectValue];
+    if ([objectValue isKindOfClass:[NSAttributedString class]] && [objectValue 
length]) {
+        font = [font demiFont];
+        NSMutableAttributedString *attrString = [objectValue mutableCopy];
+        [attrString addAttribute:NSFontAttributeName value:font 
range:NSMakeRange(0, [attrString length])];
+        [super setObjectValue:attrString];
+        [attrString release];
+    }
+}
+
 @end

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