Revision: 13472
          http://sourceforge.net/p/skim-app/code/13472
Author:   hofman
Date:     2023-06-13 21:24:34 +0000 (Tue, 13 Jun 2023)
Log Message:
-----------
update label highlight on older systems

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

Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m     2023-06-13 19:09:43 UTC (rev 13471)
+++ trunk/SKThumbnailView.m     2023-06-13 21:24:34 UTC (rev 13472)
@@ -361,8 +361,12 @@
                 [imageView setImage:nil];
         } else if ([keyPath isEqualToString:LABEL_KEY]) {
             [labelView setObjectValue:[thumbnail label]];
-            if (RUNNING_AFTER(10_15) && ([self isSelected] || [self 
highlightLevel] > 0))
-                [self updateLabelHighlightMask:nil];
+            if ([self isSelected] || [self highlightLevel] > 0) {
+                if (RUNNING_AFTER(10_15))
+                    [self updateLabelHighlightMask:nil];
+                else
+                    [self setNeedsDisplayInRect:NSInsetRect([imageView frame], 
-SELECTION_MARGIN, -SELECTION_MARGIN)];
+            }
         }
     } else {
         [super observeValueForKeyPath:keyPath ofObject:object change:change 
context:context];

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to