Revision: 14270
          http://sourceforge.net/p/skim-app/code/14270
Author:   hofman
Date:     2024-05-29 14:11:24 +0000 (Wed, 29 May 2024)
Log Message:
-----------
use block argument

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

Modified: trunk/SKAttachmentEmailer.m
===================================================================
--- trunk/SKAttachmentEmailer.m 2024-05-28 15:59:15 UTC (rev 14269)
+++ trunk/SKAttachmentEmailer.m 2024-05-29 14:11:24 UTC (rev 14270)
@@ -87,9 +87,9 @@
 
 - (NSImage *)image {
     NSString *appPath = [[[NSWorkspace sharedWorkspace] 
URLForApplicationWithBundleIdentifier:mailAppID] path];
-    NSImage *image = [NSImage imageWithSize:NSMakeSize(16.0, 16.0) 
drawingHandler:^(NSRect r){
+    NSImage *image = [NSImage imageWithSize:NSMakeSize(16.0, 16.0) 
drawingHandler:^(NSRect dstRect){
         NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:appPath];
-        [icon drawInRect:NSMakeRect(0.0, 0.0, 16.0, 16.0)];
+        [icon drawInRect:dstRect];
         return YES;
     }];
     return image;

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